...
|
...
|
@@ -39,12 +39,12 @@ class Cache |
|
|
// WINDOWS
|
|
|
if (DIRECTORY_SEPARATOR === '\\') {
|
|
|
HoodCache::Memcache('master')->set(self::makeKey($key, 'master'), $value, $expire);
|
|
|
HoodCache::Memcache('slave')->set(self::makeKey($key, 'slave'), $value, 0);
|
|
|
HoodCache::Memcache('slave')->set(self::makeKey($key, 'slave'), $value, 86400); // 二级缓存1天
|
|
|
}
|
|
|
// LINUX
|
|
|
else {
|
|
|
HoodCache::Memcached('master')->set(self::makeKey($key, 'master'), $value, $expire);
|
|
|
HoodCache::Memcached('slave')->set(self::makeKey($key, 'slave'), $value, 0);
|
|
|
HoodCache::Memcached('slave')->set(self::makeKey($key, 'slave'), $value, 86400); // 二级缓存1天
|
|
|
}
|
|
|
} catch (Exception $e) {
|
|
|
// do nothing
|
...
|
...
|
|