PHP Class Elgg\Cache\Pool\StashWrapper

WARNING: API IN FLUX. DO NOT USE DIRECTLY.
Since: 1.10.0
Inheritance: implements Elgg\Cache\Pool
Mostrar archivo Open project: elgg/elgg Class Usage Examples

Public Methods

Method Description
__construct ( Pool $stash ) Constructor
createEphemeral ( ) : StashPool Create an in-memory implementation of the pool.
get ( $key, callable $callback = null, $default = null )
invalidate ( $key )
put ( $key, $value )

Method Details

__construct() public method

Constructor
public __construct ( Pool $stash )
$stash Stash\Pool The Stash instance to be decorated.

createEphemeral() public static method

Create an in-memory implementation of the pool.
public static createEphemeral ( ) : StashPool
return StashPool

get() public method

public get ( $key, callable $callback = null, $default = null )
$callback callable

invalidate() public method

public invalidate ( $key )

put() public method

public put ( $key, $value )