PHP Class Elgg\Cache\Pool\StashWrapper

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

Méthodes publiques

Méthode 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 méthode

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

createEphemeral() public static méthode

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

get() public méthode

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

invalidate() public méthode

public invalidate ( $key )

put() public méthode

public put ( $key, $value )