MDL-46151 cachestore_memcache: set_many now uses set

This commit is contained in:
Sam Hemelryk
2014-10-14 20:03:52 +13:00
parent cfa09c2f8c
commit 11a4bfc401
+1 -1
View File
@@ -330,7 +330,7 @@ class cachestore_memcache extends cache_store implements cache_is_configurable {
public function set_many(array $keyvaluearray) {
$count = 0;
foreach ($keyvaluearray as $pair) {
if ($this->connection->set($this->parse_key($pair['key']), $pair['value'], MEMCACHE_COMPRESSED, $this->definition->get_ttl())) {
if ($this->set($pair['key'], $pair['value'])) {
$count++;
}
}