From 3e9169066ac4fa31e3227845a8d6b0a6ba6b86db Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 3 Feb 2024 01:00:45 +0200 Subject: [PATCH] fix flush delay --- src/Memory.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Memory.php b/src/Memory.php index 3c95087..3bc6858 100644 --- a/src/Memory.php +++ b/src/Memory.php @@ -117,9 +117,11 @@ class Memory { } } - public function flush(int $delay = 60) : bool + public function flush(?int $delay = 0) : bool { - return $this->_memcached->flush(); + return $this->_memcached->flush( + $delay + ); } private function _setKey(mixed $key) : string