SystemV shared memory based CacheItemPool implementation.

This CacheItemPool implementation can be used among multiple processes, but
it doesn't provide any locking mechanism. If multiple processes write to
this ItemPool, you have to avoid race condition manually in your code.

CloneableInstantiable
ImplementsPsr\Cache\CacheItemPoolInterface
Constants
public Google\Auth\Cache\SysVCacheItemPool::DEFAULT_MEMSIZE = 10000
public Google\Auth\Cache\SysVCacheItemPool::DEFAULT_PERM = 384
public Google\Auth\Cache\SysVCacheItemPool::DEFAULT_PROJ = 'A'
public Google\Auth\Cache\SysVCacheItemPool::VAR_KEY = 1
Methods
public __construct( $options = [])
 
Create a SystemV shared memory based CacheItemPool.

    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 $hasLoadedItems
    private $items
     


    • var CacheItemInterface[]
    private $options
     


    • var array
    private $sysvKey
     


    • var int
    Methods
    private loadItems()
     
    Load the items from the shared memory.

    • return bool true when success, false upon failure
    private saveCurrentItems()
     
    Save the current items.

    • return bool true when success, false upon failure
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only