Skip to content

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.

MemberSignature
putput(string $key, mixed $value, { ttl?: Core\Time\Duration }): void
getget(string $key): mixed
forgetforget(string $key): void
putSecretputSecret(string $key, secret string $value, Core\Time\Duration $ttl, array<secret bytes> $keys): void
getSecretgetSecret(string $key, array<secret bytes> $keys, { fill?: callable(): Core\Cache\SecretEntry, wait?: Core\Time\Duration }): ?secret string