src/Directory.php
/**
     * Retrieves the cache content for the given key.
     *
     * @param  string $key The cache key to retrieve.
     * @return mixed|null Returns the cached data or null.
     */
Retrieves the cache content for the given key.
@param  string $key The cache key to retrieve.
@return mixed|null Returns the cached data or null.
Retrieves the cache content for the given key . @param string $key The cache key to retrieve . @return mixed|null Returns the cached data or null .
public function loadKey($key)
    {
        $key = $this->mapKey($key);
        $path = $this->getKeyPath($key);
        if (!file_exists($path) && !is_file($path)) {
            return null;
        }
        return unserialize($this->readFile($path));
    }
public function loadKey ( $ key ) { $ key = $ this -> mapKey ( $ key ) ; $ path = $ this -> getKeyPath ( $ key ) ; if ( ! file_exists ( $ path ) && ! is_file ( $ path ) ) { return null ; } return unserialize ( $ this -> readFile ( $ path ) ) ; }
Retrieves the cache content for the given key.
Retrieves the cache content for the given key .