PHP Class LdapTools\Cache\StashCache

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

Protected Properties

Свойство Type Description
$cacheFolder The cache folder location.
$pool The Stash cache pool.
$useAutoCache Whether the cache should auto refresh based on creation/modification times.

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode 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 méthode

public __construct ( )

contains() public méthode

public contains ( $itemType, $itemName )

delete() public méthode

public delete ( $type, $name )

deleteAll() public méthode

public deleteAll ( )

get() public méthode

public get ( $itemType, $itemName )

getCacheCreationTime() public méthode

public getCacheCreationTime ( $itemType, $itemName )

getCacheFolder() public méthode

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

getCacheItem() protected méthode

protected getCacheItem ( string $itemType, string $itemName ) : Stash\Interfaces\ItemInterface
$itemType string
$itemName string
Résultat Stash\Interfaces\ItemInterface

getPool() protected méthode

protected getPool ( ) : Pool
Résultat Stash\Pool

getUseAutoCache() public méthode

public getUseAutoCache ( )

parseOptions() protected méthode

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

set() public méthode

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

setCacheFolder() public méthode

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

setOptions() public méthode

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