PHP Class Metaphore\NoStaleCacheEvent

Show file Open project: sobstel/metaphore

Protected Properties

Property Type Description
$cache
$cachedCallable
$key
$result
$ttl

Public Methods

Method Description
__construct ( Cache $cache, $key, callable $cachedCallable, Ttl $ttl )
getCache ( ) : Cache
getCachedCallable ( ) : callable
getKey ( ) : string
getResult ( )
getTtl ( ) : Ttl
hasResult ( )
setResult ( $result )

Method Details

__construct() public method

public __construct ( Cache $cache, $key, callable $cachedCallable, Ttl $ttl )
$cache Cache
$cachedCallable callable
$ttl Ttl

getCache() public method

public getCache ( ) : Cache
return Cache

getCachedCallable() public method

public getCachedCallable ( ) : callable
return callable

getKey() public method

public getKey ( ) : string
return string

getResult() public method

public getResult ( )

getTtl() public method

public getTtl ( ) : Ttl
return Ttl

hasResult() public method

public hasResult ( )

setResult() public method

public setResult ( $result )

Property Details

$cache protected property

protected $cache

$cachedCallable protected property

protected $cachedCallable

$key protected property

protected $key

$result protected property

protected $result

$ttl protected property

protected $ttl