Inheritance diagram for SimpleCachePool:Adapts a PSR-16 SimpleCache instance to the runtime entity pool.
Requires
psr/simple-cache(any version).
Concurrency locks can be implemented by extending this class.
Protected Properties | |
| readonly CacheInterface CacheInterface | $cache |
| int int | $ttl = 3600 |
Public Methods | |
| __construct (CacheInterface $cache) | |
| int | getTtl () |
| void | remove (array $keys) |
| $this | setTtl (int $ttl) |
Public Methods inherited from Pool | |
| void | add (AbstractEntity $entity) |
| This is final to ensure pH balance. More... | |
| null AbstractEntity | get (string $key, Api|Data $caller, Closure $factory) |
| This is final to ensure pH balance. More... | |
Protected Methods | |
| void | _add (AbstractEntity $entity) |
| void | _addKeys (AbstractEntity $entity, string ... $keys) |
| null AbstractEntity | _get (string $key, Api|Data $caller) |
| bool | _has (string $key) |
Additional Inherited Members | |
Public Properties inherited from Pool | |
| $gids = [] | |
| __construct | ( | CacheInterface | $cache | ) |
| CacheInterface | $cache |
|
protected |
|
protected |
|
protected |
|
protected |
|
final |
| void remove | ( | array | $keys | ) |
|
final |
| int | $ttl |