19 declare(strict_types=1);
38 public function lock(
float $seconds): void
47 public function has(
string $key): bool
52 public function get(
string $key,
Transformation $transformation):
string|
int|array|
bool|null
57 public function set(
string $key, array|
bool|
int|
string|null $value, ?
int $ttl = null):
void 62 public function delete(
string $key):
void 79 return $this->request->getContainerName();
getAdaptorName()
Returns the name of the adaptop used (such as apc, memcache, phpstatic)
__construct(private Request $request)
has(string $key)
Returns true if the container contains a value for the given key.
flush()
Deletes all values in the container.
isLocked()
Returns true if the container is locked.
getContainerName()
Returns the name of the container.
lock(float $seconds)
Locks the container for a given amount of seconds (max 300), in this time, get() will return null and...