mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
update shared memory pool api
This commit is contained in:
parent
287f843283
commit
9661eb21c5
4 changed files with 24 additions and 3 deletions
|
|
@ -41,6 +41,7 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
|
|||
'mime',
|
||||
32
|
||||
);
|
||||
|
||||
$this->_pool->init(
|
||||
'data',
|
||||
// 1 Mb default
|
||||
|
|
@ -227,8 +228,13 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
|
|||
return null;
|
||||
}
|
||||
|
||||
public function reset(): void
|
||||
{
|
||||
$this->_pool->reset();
|
||||
}
|
||||
|
||||
public function close(): void
|
||||
{
|
||||
$this->_pool->clean();
|
||||
$this->_pool->close();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue