PHP Class Metaphore\NoStaleCacheEvent

Mostra 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_oe property

protected $cache

$cachedCallable protected_oe property

protected $cachedCallable

$key protected_oe property

protected $key

$result protected_oe property

protected $result

$ttl protected_oe property

protected $ttl