mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
init shared memory buffer for async operations
This commit is contained in:
parent
d67589568c
commit
7212e44314
2 changed files with 136 additions and 31 deletions
21
src/Interface/Model/Buffer.php
Normal file
21
src/Interface/Model/Buffer.php
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue