update shared memory pool api

This commit is contained in:
yggverse 2024-07-18 16:49:45 +03:00
parent 287f843283
commit 9661eb21c5
4 changed files with 24 additions and 3 deletions

View file

@ -127,7 +127,18 @@ class Pool implements \Yggverse\Yoda\Interface\Model\Pool
);
}
public function clean(): void
public function reset(): void
{
foreach ($this->_data as $key => $shmop)
{
$this->set(
$key,
null
);
}
}
public function close(): void
{
foreach ($this->_data as $key => $shmop)
{