improve PTGen

This commit is contained in:
xiaomlove
2021-01-15 22:13:46 +08:00
parent bfbc74cd01
commit 7157f9e1f0
19 changed files with 311 additions and 119 deletions

View File

@@ -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;
}
}