Simple in-memory cache implementation.

CloneableFinalInstantiable
ImplementsPsr\Cache\CacheItemPoolInterface
Methods
public clear()
 

{@inheritdoc}

public commit()
 

{@inheritdoc}

public deleteItem( $key)
 

{@inheritdoc}

public deleteItems(array $keys)
 

{@inheritdoc}

public getItem( $key)
 

{@inheritdoc}

public getItems(array $keys = [])
 

{@inheritdoc}

public hasItem( $key)
 

{@inheritdoc}

public save(Psr\Cache\CacheItemInterface $item)
 

{@inheritdoc}

public saveDeferred(Psr\Cache\CacheItemInterface $item)
 

{@inheritdoc}

Properties
private $deferredItems
 
  • var CacheItemInterface[]
private $items
 
  • var CacheItemInterface[]
Methods
private isValidKey( $key)
 

Determines if the provided key is valid.

© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only