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.
2 parents dfa4feb + e4ce2e7 commit f66f2acCopy full SHA for f66f2ac
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
@@ -128,7 +128,7 @@ public function clear($prefix = '') {
128
$keys = self::$cache->keys($prefix);
129
$deleted = self::$cache->del($keys);
130
131
- return count($keys) === $deleted;
+ return (is_array($keys) && (count($keys) === $deleted));
132
}
133
134
/**
0 commit comments