Property | Type | Description | |
---|---|---|---|
$adapter | Instance of cache adapter | ||
$prefix | Prefix for cache keys | ||
$tagAdapter | Instance of tag adapter | ||
$tagPrefix | Prefix for tags |
Method | Description | |
---|---|---|
add ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean | ||
addTag ( string $id, string $tag ) : boolean | ||
contains ( string $id ) : boolean | ||
delete ( string $id ) : mixed | ||
deleteByTag ( string $tag ) : boolean | ||
flush ( ) : void | ||
get ( string $id ) : mixed | ||
getAdapter ( string $adapterName = null ) : Bluz\Cache\CacheInterface | Get underlying cache adapter | |
getTagAdapter ( ) : Bluz\Cache\CacheInterface | Get underlying tag adapter | |
set ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean | ||
setPrefix ( string $prefix ) : void | Setup prefix for cache records | |
setTagPrefix ( string $prefix ) : void | Setup prefix for cache records of tags |
Method | Description | |
---|---|---|
initAdapter ( string $adapterName ) : Bluz\Cache\CacheInterface | Initialize adapter | |
initOptions ( ) : void | Check Cache configuration | |
prepareId ( string $id ) : string | Prepare Id with prefix |
public getAdapter ( string $adapterName = null ) : Bluz\Cache\CacheInterface | ||
$adapterName | string | |
return | Bluz\Cache\CacheInterface |
public getTagAdapter ( ) : Bluz\Cache\CacheInterface | ||
return | Bluz\Cache\CacheInterface |
protected initAdapter ( string $adapterName ) : Bluz\Cache\CacheInterface | ||
$adapterName | string | |
return | Bluz\Cache\CacheInterface |
protected initOptions ( ) : void | ||
return | void |
public setTagPrefix ( string $prefix ) : void | ||
$prefix | string | |
return | void |