objectcache: avoid using deprecated phpredis::delete() alias
[lhc/web/wiklou.git] / includes / libs / objectcache / RedisBagOStuff.php
index 583ec37..0276ed2 100644 (file)
  */
 
 /**
- * Redis-based caching module for redis server >= 2.6.12
+ * Redis-based caching module for redis server >= 2.6.12 and phpredis >= 2.2.4
  *
- * @note: avoid use of Redis::MULTI transactions for twemproxy support
+ * @see https://github.com/phpredis/phpredis/blob/d310ed7c8/Changelog.md
+ * @note Avoid use of Redis::MULTI transactions for twemproxy support
+ *
+ * @ingroup Cache
+ * @ingroup Redis
  */
 class RedisBagOStuff extends BagOStuff {
        /** @var RedisConnectionPool */
@@ -132,7 +136,7 @@ class RedisBagOStuff extends BagOStuff {
                        return false;
                }
                try {
-                       $conn->delete( $key );
+                       $conn->del( $key );
                        // Return true even if the key didn't exist
                        $result = true;
                } catch ( RedisException $e ) {