mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
implement shared memory pool model
This commit is contained in:
parent
1d2641dceb
commit
8b28265204
2 changed files with 86 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue