mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +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) {
|
public function read($key) {
|
||||||
$value = $this->_Redis->get($key);
|
$value = $this->_Redis->get($key);
|
||||||
if (is_numeric($value)) {
|
if (ctype_digit($value)) {
|
||||||
$value = (int) $value;
|
$value = (int) $value;
|
||||||
}
|
}
|
||||||
if ($value !== false && is_string($value)) {
|
if ($value !== false && is_string($value)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue