Pools entities in runtime memory.
Public Properties | |
$gids = [] | |
Public Methods | |
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... | |
void | remove (array $keys) |
Protected Methods | |
void | _add (AbstractEntity $entity) |
void | _addKeys (AbstractEntity $entity, string ... $keys) |
null AbstractEntity | _get (string $key, Api|Data $caller) |
bool | _has (string $key) |
Polls. More... | |
|
protected |
|
protected |
|
protected |
string | $key | |
Api | Data | $caller | For hydration if needed. |
Reimplemented in SimpleCachePool.
|
protected |
Polls.
Does not guarantee a subsequent hit.
string | $key |
Reimplemented in SimpleCachePool.
|
final |
This is final to ensure pH balance.
Subclasses must override the internal methods instead of this.
AbstractEntity | $entity |
|
final |
This is final to ensure pH balance.
Subclasses must override the internal methods instead of this.
string | $key | |
Api | Data | $caller | |
Closure | $factory | fn( Api|Data $caller ): null|AbstractEntity |
void remove | ( | array | $keys | ) |