init shared memory buffer for async operations

This commit is contained in:
yggverse 2024-07-16 18:48:33 +03:00
parent d67589568c
commit 7212e44314
2 changed files with 136 additions and 31 deletions

View file

@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace Yggverse\Yoda\Interface\Model;
/*
* Shared memory API for async operations
*
*/
interface Buffer
{
public function get(
string $key
): mixed;
public function set(
string $key,
mixed $value
): void;
}