Class BaseCache
The base class for cache services
- Wei\Base
-
Wei\BaseCache
Direct known subclasses
Wei\Apc, Wei\ArrayCache, Wei\Redis, Wei\Bicache, Wei\Cache, Wei\Couchbase, Wei\DbCache, Wei\FileCache, Wei\Memcache, Wei\Memcached, Wei\MongoCacheIndirect known subclasses
Wei\PhpFileCache
public
mixed
|
|
abstract public
mixed
|
|
protected
mixed
|
#
processGetResult( string $key, mixed $result, integer $expire, callable $fn )
Store data to cache when data is not false and callback is provided |
abstract public
boolean
|
|
abstract public
boolean
|
|
abstract public
boolean
|
|
abstract public
boolean
|
|
abstract public
boolean
|
|
abstract public
integer|false
|
|
public
integer|false
|
|
public
array
|
|
public
array
|
|
public
mixed
|
#
getFileContent( string $file, callable $fn )
Use the file modify time as cache key to store an item from a callback |
public
string
|
|
public
|
|
abstract public
boolean
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
protected
string
|
$namespace
The string prepend to the cache key |
#
''
|
$providers,
$wei
|