PHP Class LdapTools\Cache\StashCache

Author: Chad Sikorra ([email protected])
Inheritance: implements LdapTools\Cache\CacheInterface, use trait CacheTrait
Datei anzeigen Open project: ldaptools/ldaptools

Protected Properties

Property Type Description
$cacheFolder The cache folder location.
$pool The Stash cache pool.
$useAutoCache Whether the cache should auto refresh based on creation/modification times.

Public Methods

Method Description
__construct ( )
contains ( $itemType, $itemName )
delete ( $type, $name )
deleteAll ( )
get ( $itemType, $itemName )
getCacheCreationTime ( $itemType, $itemName )
getCacheFolder ( ) : string The location to where the cache will be kept.
getUseAutoCache ( )
set ( LdapTools\Cache\CacheableItemInterface $cacheableItem )
setCacheFolder ( $folder ) Set the location where the cache will be kept.
setOptions ( array $options )

Protected Methods

Method Description
getCacheItem ( string $itemType, string $itemName ) : Stash\Interfaces\ItemInterface
getPool ( ) : Pool
parseOptions ( array $options ) Check for any options that apply to Stash.

Method Details

__construct() public method

public __construct ( )

contains() public method

public contains ( $itemType, $itemName )

delete() public method

public delete ( $type, $name )

deleteAll() public method

public deleteAll ( )

get() public method

public get ( $itemType, $itemName )

getCacheCreationTime() public method

public getCacheCreationTime ( $itemType, $itemName )

getCacheFolder() public method

The location to where the cache will be kept.
public getCacheFolder ( ) : string
return string

getCacheItem() protected method

protected getCacheItem ( string $itemType, string $itemName ) : Stash\Interfaces\ItemInterface
$itemType string
$itemName string
return Stash\Interfaces\ItemInterface

getPool() protected method

protected getPool ( ) : Pool
return Stash\Pool

getUseAutoCache() public method

public getUseAutoCache ( )

parseOptions() protected method

Check for any options that apply to Stash.
protected parseOptions ( array $options )
$options array

set() public method

public set ( LdapTools\Cache\CacheableItemInterface $cacheableItem )
$cacheableItem LdapTools\Cache\CacheableItemInterface

setCacheFolder() public method

Set the location where the cache will be kept.
public setCacheFolder ( $folder )
$folder

setOptions() public method

public setOptions ( array $options )
$options array

Property Details

$cacheFolder protected_oe property

The cache folder location.
protected $cacheFolder

$pool protected_oe property

The Stash cache pool.
protected $pool

$useAutoCache protected_oe property

Whether the cache should auto refresh based on creation/modification times.
protected $useAutoCache