+ [refac] close cache connection when program is shutdown.
This commit is contained in:
Vendored
+12
@@ -215,6 +215,18 @@ class RedisDriver implements CacheInterface
|
||||
return (bool) $this->redis->exists($key);
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭 Redis 连接。
|
||||
* Close the Redis connection.
|
||||
*
|
||||
* @access public
|
||||
* @return bool
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
return $this->redis->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取内存使用情况。
|
||||
* Get memory usage.
|
||||
|
||||
Reference in New Issue
Block a user