Elgg  Version 2.3
Public Member Functions | Static Public Member Functions | List of all members
Elgg\Cache\Pool\StashWrapper Class Reference

Defers to Stash for the meat of the caching logic. More...

Inheritance diagram for Elgg\Cache\Pool\StashWrapper:
Elgg\Cache\Pool

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Defers to Stash for the meat of the caching logic.

WARNING: API IN FLUX. DO NOT USE DIRECTLY.

Since
1.10.0

private

Definition at line 17 of file StashWrapper.php.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 27 of file StashWrapper.php.

Member Function Documentation

static Elgg\Cache\Pool\StashWrapper::createEphemeral ( )
static

Create an in-memory implementation of the pool.

Returns
StashPool

Definition at line 73 of file StashWrapper.php.

Elgg\Cache\Pool\StashWrapper::get (   $key,
callable  $callback = null,
  $default = null 
)

Implements Elgg\Cache\Pool.

Definition at line 32 of file StashWrapper.php.

Elgg\Cache\Pool\StashWrapper::invalidate (   $key)

Implements Elgg\Cache\Pool.

Definition at line 55 of file StashWrapper.php.

Elgg\Cache\Pool\StashWrapper::put (   $key,
  $value 
)

Implements Elgg\Cache\Pool.

Definition at line 62 of file StashWrapper.php.


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