PHP Class Cache\Adapter\Filesystem\FilesystemCachePool

Author: Tobias Nyholm ([email protected])
Inheritance: extends Cache\Adapter\Common\AbstractCachePool
Datei anzeigen Open project: php-cache/cache

Public Methods

Method Description
__construct ( League\Flysystem\Filesystem $filesystem, string $folder = 'cache' )
save ( Psr\Cache\CacheItemInterface $item )
setFolder ( string $folder )

Protected Methods

Method Description
appendListItem ( $name, $key )
clearAllObjectsFromCache ( )
clearOneObjectFromCache ( $key )
fetchObjectFromCache ( $key )
getList ( $name )
removeList ( $name )
removeListItem ( $name, $key )
storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl )

Private Methods

Method Description
forceClear ( $key ) : boolean
getFilePath ( string $key ) : string

Method Details

__construct() public method

public __construct ( League\Flysystem\Filesystem $filesystem, string $folder = 'cache' )
$filesystem League\Flysystem\Filesystem
$folder string

appendListItem() protected method

protected appendListItem ( $name, $key )

clearAllObjectsFromCache() protected method

protected clearAllObjectsFromCache ( )

clearOneObjectFromCache() protected method

protected clearOneObjectFromCache ( $key )

fetchObjectFromCache() protected method

protected fetchObjectFromCache ( $key )

getList() protected method

protected getList ( $name )

removeList() protected method

protected removeList ( $name )

removeListItem() protected method

protected removeListItem ( $name, $key )

save() public method

public save ( Psr\Cache\CacheItemInterface $item )
$item Psr\Cache\CacheItemInterface

setFolder() public method

public setFolder ( string $folder )
$folder string

storeItemInCache() protected method

protected storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl )
$item Psr\Cache\CacheItemInterface