Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Redis cache, removed extra key method call in getMulti and setMulti https://github.com/givanz/Vvveb/issues/159

givanz3e9572ba303e
diff --git a/system/cache/redis.php b/system/cache/redis.php
index 8aef769..7f57405 100755
--- a/system/cache/redis.php
+++ b/system/cache/redis.php
@@ -69,7 +69,7 @@ class Redis {
$result = [];
foreach ($keys as $key) {
- $result[$key] = $this->get($this->key($namespace, $key));
+ $result[$key] = $this->get($namespace, $key);
}
return $result;
@@ -79,7 +79,7 @@ class Redis {
$expire = $expire ?? $this->expire;
foreach ($items as $key => $value) {
- $this->set($this->key($namespace, $key), $value, $expire);
+ $this->set($namespace, $key, $value, $expire);
}
}