implement shared memory pool model

This commit is contained in:
yggverse 2024-07-17 09:53:33 +03:00
parent 1d2641dceb
commit 8b28265204
2 changed files with 86 additions and 3 deletions

View file

@ -10,12 +10,22 @@ namespace Yggverse\Yoda\Interface\Model;
*/
interface Pool
{
public function __construct(
?string $namespace = null
);
public function get(
string $key
): mixed;
): ?string;
public function set(
string $key,
mixed $value
): void;
string $value,
string $flags = 'c',
int $offset = 0,
int $mode = 0644,
?string $encoding = null
): int;
public function reset(): void;
}