PHP Interface Rinvex\Repository\Contracts\CacheableContract

Show file Open project: rinvex/repository

Public Methods

Method Description
enableCacheClear ( boolean $status ) Enable repository cache clear.
forgetCache ( ) Forget the repository cache.
getCacheDriver ( ) : string Get the repository cache driver.
getCacheLifetime ( ) : float | integer Get the repository cache lifetime.
isCacheClearEnabled ( ) : boolean Determine if repository cache clear is enabled.
setCacheDriver ( string $cacheDriver ) Set the repository cache driver.
setCacheLifetime ( float | integer $cacheLifetime ) Set the repository cache lifetime.

Method Details

enableCacheClear() public method

Enable repository cache clear.
public enableCacheClear ( boolean $status )
$status boolean

forgetCache() public method

Forget the repository cache.
public forgetCache ( )

getCacheDriver() public method

Get the repository cache driver.
public getCacheDriver ( ) : string
return string

getCacheLifetime() public method

Get the repository cache lifetime.
public getCacheLifetime ( ) : float | integer
return float | integer

isCacheClearEnabled() public method

Determine if repository cache clear is enabled.
public isCacheClearEnabled ( ) : boolean
return boolean

setCacheDriver() public method

Set the repository cache driver.
public setCacheDriver ( string $cacheDriver )
$cacheDriver string

setCacheLifetime() public method

Set the repository cache lifetime.
public setCacheLifetime ( float | integer $cacheLifetime )
$cacheLifetime float | integer