mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 17:07:03 +03:00
Resolve #1715
This commit is contained in:
parent
12b6ed3dbb
commit
9a7ff9fe27
2 changed files with 6 additions and 3 deletions
|
|
@ -47,7 +47,10 @@ class Memcache implements \MailSo\Cache\DriverInterface
|
||||||
|
|
||||||
public function Set(string $sKey, string $sValue) : bool
|
public function Set(string $sKey, string $sValue) : bool
|
||||||
{
|
{
|
||||||
return $this->oMem ? $this->oMem->set($this->generateCachedKey($sKey), $sValue, 0, $this->iExpire) : false;
|
if ($this->oMem instanceof \Memcache) {
|
||||||
|
return $this->oMem->set($this->generateCachedKey($sKey), $sValue, 0, $this->iExpire);
|
||||||
|
}
|
||||||
|
return $this->oMem ? $this->oMem->set($this->generateCachedKey($sKey), $sValue, $this->iExpire) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Exists(string $sKey) : bool
|
public function Exists(string $sKey) : bool
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ class CacheMemcachePlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
const
|
const
|
||||||
NAME = 'Cache Memcache',
|
NAME = 'Cache Memcache',
|
||||||
VERSION = '2.36',
|
VERSION = '2.37',
|
||||||
RELEASE = '2024-03-22',
|
RELEASE = '2024-09-15',
|
||||||
REQUIRED = '2.36.0',
|
REQUIRED = '2.36.0',
|
||||||
CATEGORY = 'Cache',
|
CATEGORY = 'Cache',
|
||||||
DESCRIPTION = 'Cache handler using PHP Memcache or PHP Memcached';
|
DESCRIPTION = 'Cache handler using PHP Memcache or PHP Memcached';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue