mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-01 07:09:46 +00:00
Merge remote-tracking branch 'origin/2.2-redis-engine' into 2.2-redis-engine
This commit is contained in:
commit
e73bb27450
1 changed files with 3 additions and 3 deletions
|
@ -114,7 +114,7 @@ class RedisEngine extends CacheEngine {
|
|||
*/
|
||||
public function read($key) {
|
||||
$value = $this->_Redis->get($key);
|
||||
if (is_numeric($value)) {
|
||||
if (ctype_digit($value)) {
|
||||
$value = (int) $value;
|
||||
}
|
||||
if ($value !== false && is_string($value)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue