PHP Class Cachearium\Backend\CacheFilesystem

Inheritance: extends Cachearium\CacheAbstract
Datei anzeigen Open project: corollarium/cachearium Class Usage Examples

Public Methods

Method Description
__clone ( ) Prevent users to clone the instance
cleanP ( $base, $id ) (non-PHPdoc)
clear ( ) (non-PHPdoc)
delete ( CacheKey $k ) (non-PHPdoc)
enable ( )
get ( CacheKey $k ) (non-PHPdoc)
increment ( $value, CacheKey $k, $default ) (non-PHPdoc)
prefetch ( $data ) (non-PHPdoc)
report ( ) (non-PHPdoc)
setDefaultLifetime ( $lifetime ) (non-PHPdoc)
setPath ( string $path ) : CacheFS Sets path to store data
singleton ( ) : CacheFS Cache constructor (this is a singleton).
store ( $data, CacheKey $k, $lifetime ) (non-PHPdoc)

Protected Methods

Method Description
hashKey ( CacheKey $k ) (non-PHPdoc)

Private Methods

Method Description
__construct ( ) Constructor.

Method Details

__clone() public method

Prevent users to clone the instance
public __clone ( )

cleanP() public method

(non-PHPdoc)
public cleanP ( $base, $id )

clear() public method

(non-PHPdoc)
See also: Cachearium\CacheAbstract::clear()
public clear ( )

delete() public method

(non-PHPdoc)
public delete ( CacheKey $k )
$k Cachearium\CacheKey

enable() public method

public enable ( )

get() public method

(non-PHPdoc)
public get ( CacheKey $k )
$k Cachearium\CacheKey

hashKey() protected method

(non-PHPdoc)
protected hashKey ( CacheKey $k )
$k Cachearium\CacheKey

increment() public method

(non-PHPdoc)
public increment ( $value, CacheKey $k, $default )
$k Cachearium\CacheKey

prefetch() public method

(non-PHPdoc)
See also: CacheAbstract::prefetch()
public prefetch ( $data )

report() public method

(non-PHPdoc)
See also: Cachearium\CacheAbstract::report()
public report ( )

setDefaultLifetime() public method

(non-PHPdoc)
public setDefaultLifetime ( $lifetime )

setPath() public method

Sets path to store data
public setPath ( string $path ) : CacheFS
$path string
return CacheFS

singleton() public static method

Cache constructor (this is a singleton).
public static singleton ( ) : CacheFS
return CacheFS The cache singleton.

store() public method

(non-PHPdoc)
public store ( $data, CacheKey $k, $lifetime )
$k Cachearium\CacheKey