mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-63127 cachestore_redis: set pair value correctly
This commit is contained in:
parent
cda3e431ca
commit
ac19c888b0
2
cache/stores/redis/lib.php
vendored
2
cache/stores/redis/lib.php
vendored
@ -312,7 +312,7 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_
|
||||
$pairs = [];
|
||||
foreach ($keyvaluearray as $pair) {
|
||||
$key = $pair['key'];
|
||||
$pairs[$key] = $this->compress($pairs[$key]);
|
||||
$pairs[$key] = $this->compress($pair['value']);
|
||||
}
|
||||
if ($this->redis->hMSet($this->hash, $pairs)) {
|
||||
return count($pairs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user