src/Directory.php
/**
     * Get the expiration data of a key
     *
     * @param string $key The cache key
     * @return bool|int
     */
Get the expiration data of a key
@param string $key The cache key
@return bool|int
Get the expiration data of a key @param string $key The cache key @return bool|int
protected function loadExpire($key)
    {
        $path = $this->getTtlPath($key);
        if (!is_file($path)) {
            return false;
        }
        $expires = json_decode($this->readFile($path), true);
        if (!array_key_exists(base64_encode($key), $expires)) {
            return false;
        }
        return $expires[base64_encode($key)];
    }
protected function loadExpire ( $ key ) { $ path = $ this -> getTtlPath ( $ key ) ; if ( ! is_file ( $ path ) ) { return false ; } $ expires = json_decode ( $ this -> readFile ( $ path ) , true ) ; if ( ! array_key_exists ( base64_encode ( $ key ) , $ expires ) ) { return false ; } return $ expires [ base64_encode ( $ key ) ] ; }
Get the expiration data of a key
 @param string $key The cache key
 @return bool|int
Get the expiration data of a key @param string $key The cache key @return bool|int