修复 getMulti 方式获取缓存无效的问题
This commit is contained in:
parent
98f6cc3a74
commit
ffba5153b1
|
@ -22,10 +22,6 @@ class memory_driver_apc
|
||||||
return apc_fetch($key);
|
return apc_fetch($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMulti($keys) {
|
|
||||||
return apc_fetch($keys);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function set($key, $value, $ttl = 0) {
|
public function set($key, $value, $ttl = 0) {
|
||||||
return apc_store($key, $value, $ttl);
|
return apc_store($key, $value, $ttl);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,10 +20,6 @@ class memory_driver_apcu {
|
||||||
return apcu_fetch($key);
|
return apcu_fetch($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMulti($keys) {
|
|
||||||
return apcu_fetch($key);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function set($key, $value, $ttl = 0) {
|
public function set($key, $value, $ttl = 0) {
|
||||||
return apcu_store($key, $value, $ttl);
|
return apcu_store($key, $value, $ttl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue