ObjectCache final class
Minn\Runtime\ObjectCache · public/minn/src/Minn/Runtime/ObjectCache.php · 63 lines
The per-request object cache behind wp_cache_*: groups of keys, nothing persistent.
Used by 1
Constants and properties
| private | array $groups |
Public
| method | get(string $key, string $group, ?bool $found = NULL): mixed# | A cached value, or false. |
| method | set(string $key, mixed $value, string $group): bool# | Stores a value. |
| method | add(string $key, mixed $value, string $group): bool# | Stores a value only when the key is empty. |
| method | delete(string $key, string $group): bool# | Removes a key. |
| method | flush(): bool# | Empties the cache. |
| method | sizes(): array# | Each group's size, its entries serialized, in bytes, in the order the groups were first written: what WP_Object_Cache::stats prints. @return array<string, int> |
| method | flushGroup(string $group): bool# | Empties one group. |
Nothing matches.