Core\Cache\Store
One cache, from Core\Cache. It saves a copy of a value under a key and returns a copy when you read it. A change to the value after you save it does not change the cache.
Returned by
You get a Core\Cache\Store from these methods:
Members
5 members.
| Member | Signature |
|---|---|
put | put(string $key, mixed $value, { ttl?: Core\Time\Duration }): void |
get | get(string $key): mixed |
forget | forget(string $key): void |
putSecret | putSecret(string $key, secret string $value, Core\Time\Duration $ttl, array<secret bytes> $keys): void |
getSecret | getSecret(string $key, array<secret bytes> $keys, { fill?: callable(): Core\Cache\SecretEntry, wait?: Core\Time\Duration }): ?secret string |
