Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Resolve #1715
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Sep 15, 2024
1 parent 12b6ed3 commit 9a7ff9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion plugins/cache-memcache/Memcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ public function setPrefix(string $sKeyPrefix) : void

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
Expand Down
4 changes: 2 additions & 2 deletions plugins/cache-memcache/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class CacheMemcachePlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Cache Memcache',
VERSION = '2.36',
RELEASE = '2024-03-22',
VERSION = '2.37',
RELEASE = '2024-09-15',
REQUIRED = '2.36.0',
CATEGORY = 'Cache',
DESCRIPTION = 'Cache handler using PHP Memcache or PHP Memcached';
Expand Down

0 comments on commit 9a7ff9f

Please sign in to comment.