mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正 Redis::has() 方法的返回值为bool
This commit is contained in:
2
library/think/cache/driver/Redis.php
vendored
2
library/think/cache/driver/Redis.php
vendored
@@ -70,7 +70,7 @@ class Redis extends Driver
|
||||
*/
|
||||
public function has($name)
|
||||
{
|
||||
return $this->handler->exists($this->getCacheKey($name));
|
||||
return (bool) $this->handler->exists($this->getCacheKey($name));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user