Elgg  Version 1.11
Public Member Functions | Static Public Member Functions | List of all members
Elgg\Cache\StashPool Class Reference
Inheritance diagram for Elgg\Cache\StashPool:
Elgg\Cache\Pool

Public Member Functions

 __construct (Stash\Pool $stash)
 Constructor. More...
 
 get ($key, callable $callback)
 
 invalidate ($key)
 
 put ($key, $value)
 

Static Public Member Functions

static createEphemeral ()
 Create an in-memory implementation of the pool. More...
 

Detailed Description

Definition at line 17 of file StashPool.php.

Constructor & Destructor Documentation

Elgg\Cache\StashPool::__construct ( Stash\Pool  $stash)

Constructor.

Parameters
Stash\Pool$stashThe Stash instance to be decorated.

Definition at line 27 of file StashPool.php.

Member Function Documentation

static Elgg\Cache\StashPool::createEphemeral ( )
static

Create an in-memory implementation of the pool.

Returns
StashPool

Definition at line 69 of file StashPool.php.

Elgg\Cache\StashPool::get (   $key,
callable  $callback 
)

Implements Elgg\Cache\Pool.

Definition at line 32 of file StashPool.php.

Elgg\Cache\StashPool::invalidate (   $key)

Implements Elgg\Cache\Pool.

Definition at line 51 of file StashPool.php.

Elgg\Cache\StashPool::put (   $key,
  $value 
)

Implements Elgg\Cache\Pool.

Definition at line 58 of file StashPool.php.


The documentation for this class was generated from the following file: