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