src/Directory.php
/**
     * Retrieves the cache keys for the given tag.
     *
     * @param  string $tag The cache tag to retrieve.
     * @return array|null Returns an array of cache keys or null.
     */
Retrieves the cache keys for the given tag.
@param  string $tag The cache tag to retrieve.
@return array|null Returns an array of cache keys or null.
Retrieves the cache keys for the given tag . @param string $tag The cache tag to retrieve . @return array|null Returns an array of cache keys or null .
public function loadTag($tag)
    {
        if (!$this->getOption('tag_enable')) {
            return null;
        }
        $tag = $this->mapTag($tag);
        $path = $this->getTagPath($tag);
        if (!is_file($path)) {
            return null;
        }
        $keys = file($path, FILE_IGNORE_NEW_LINES);
        if (0 === count($keys)) {
            return null;
        }
        array_walk($keys, function (&$item) { $item = base64_decode($item); });
        return $keys;
    }
public function loadTag ( $ tag ) { if ( ! $ this -> getOption ( 'tag_enable' ) ) { return null ; } $ tag = $ this -> mapTag ( $ tag ) ; $ path = $ this -> getTagPath ( $ tag ) ; if ( ! is_file ( $ path ) ) { return null ; } $ keys = file ( $ path , FILE_IGNORE_NEW_LINES ) ; if ( 0 === count ( $ keys ) ) { return null ; } array_walk ( $ keys , function ( & $ item ) { $ item = base64_decode ( $ item ) ; } ) ; return $ keys ; }
Retrieves the cache keys for the given tag.
Retrieves the cache keys for the given tag .