SilverStripe\Versioned\Caching\ProxyCacheAdapter
psr-6 cache proxy for an internal cache, which provides segmentation of cache keys based on current versioned mode. This ensures that cross-stage content cannot cross-pollenate each other.
Note: segmentation can be disabled via 'versionedstate = false' being supplied as a
constructor arg.
Based on Symfony\Component\Cache\Simple\TraceableCache
Synopsis
class ProxyCacheAdapter
implements
CacheInterface,ResettableInterface,PruneableInterface
{
- // members
- protected CacheInterface $pool;
- // methods
- public void __construct()
- public array __sleep()
- public void get()
- public void has()
- public void delete()
- public void set()
- public void setMultiple()
- public void getMultiple()
- public void clear()
- public void deleteMultiple()
- public void prune()
- public void reset()
- protected abstract string getKeyID()
- protected array getKeyIDs()
- protected array iteratorToArray()
Hierarchy
Implements
- Psr\SimpleCache\CacheInterface
- Symfony\Component\Cache\ResettableInterface
- Symfony\Component\Cache\PruneableInterface
Members
protected
- $pool — Psr\SimpleCache\CacheInterface
Methods
protected
- getKeyID() — Map user cache to internal cache
- getKeyIDs() — Get key ids
- iteratorToArray() — Ensure that a list is cast to an array
public
- __construct() — Create container cache controlling an inner pool cache
- __sleep() — Do not serialize() `$this->pool` because it may contain a non-serializable cache.
- clear() — {@inheritdoc}
- delete() — {@inheritdoc}
- deleteMultiple() — {@inheritdoc}
- get() — {@inheritdoc}
- getMultiple() — {@inheritdoc}
- has() — {@inheritdoc}
- prune() — {@inheritdoc}
- reset() — {@inheritdoc}
- set() — {@inheritdoc}
- setMultiple() — {@inheritdoc}