mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
improve PTGen
This commit is contained in:
@@ -331,4 +331,18 @@ class RedisCache {
|
||||
{
|
||||
return is_numeric($value) ? $value : unserialize($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* get the redis client
|
||||
*
|
||||
* @date 2021/1/15
|
||||
* @return Redis
|
||||
*/
|
||||
public function getRedis()
|
||||
{
|
||||
if ($this->getIsEnabled()) {
|
||||
return $this->redis;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user