cii-text-analysis/vendor/amphp/parallel/lib/Worker/Environment.php
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

26 lines
625 B
PHP

<?php
namespace Amp\Parallel\Worker;
interface Environment extends \ArrayAccess
{
public function exists(string $key): bool;
/**
* @return mixed|null Returns null if the key does not exist.
*/
public function get(string $key);
/**
* @param mixed $value Using null for the value deletes the key.
* @param int $ttl Number of seconds until data is automatically deleted. Use null for unlimited TTL.
*/
public function set(string $key, $value, ?int $ttl = null);
public function delete(string $key);
/**
* Removes all values.
*/
public function clear();
}