We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d647025 commit 826e234Copy full SHA for 826e234
build/stubs/redis.php
@@ -2177,7 +2177,7 @@ public function pExpireAt($key, $timestamp)
2177
*
2178
* @param string $pattern pattern, using '*' as a wildcard
2179
2180
- * @return array string[] The keys that match a certain pattern.
+ * @return string[]|false The keys that match a certain pattern.
2181
2182
* @link https://redis.io/commands/keys
2183
* @example
lib/private/Memcache/Redis.php
@@ -78,7 +78,7 @@ public function clear($prefix = '') {
78
$keys = self::$cache->keys($prefix);
79
$deleted = self::$cache->del($keys);
80
81
- return count($keys) === $deleted;
+ return (is_array($keys) && (count($keys) === $deleted));
82
}
83
84
/**
0 commit comments