Isswp101\Persimmon\Cache\RuntimeCache::getNotCachedAttributes PHP Method

getNotCachedAttributes() public method

Return the difference between given attributes and attributes which are already cached.
public getNotCachedAttributes ( mixed $key, array $attributes = ['*'] ) : array
$key mixed
$attributes array
return array
    public function getNotCachedAttributes($key, array $attributes = ['*'])
    {
        if (!$this->has($key)) {
            return $attributes;
        }
        $cachedAttributes = $this->cache[$key]['attributes'];
        return $cachedAttributes == ['*'] ? [] : array_diff($attributes, $cachedAttributes);
    }