@@ -915,7 +915,7 @@ public function sContains($key, $value) {}
915
915
916
916
/**
917
917
* Returns the cardinality of the set identified by key.
918
- *
918
+ *
919
919
* @param string $key
920
920
* @return int the cardinality of the set identified by key, 0 if the set doesn't exist.
921
921
* @link http://redis.io/commands/scard
@@ -1416,7 +1416,7 @@ public function auth($password) {}
1416
1416
1417
1417
/**
1418
1418
* Starts the background rewrite of AOF (Append-Only File)
1419
- *
1419
+ *
1420
1420
* @return bool: TRUE in case of success, FALSE in case of failure.
1421
1421
* @link http://redis.io/commands/bgrewriteaof
1422
1422
* @example $redis->bgrewriteaof();
@@ -1544,7 +1544,7 @@ public function getRange($key, $start, $end) {}
1544
1544
1545
1545
/**
1546
1546
* Return a substring of a larger string
1547
- *
1547
+ *
1548
1548
* @deprecated
1549
1549
* @param type $key
1550
1550
* @param type $start
@@ -1690,6 +1690,21 @@ public function sort($key, $option = null) {}
1690
1690
*/
1691
1691
public function info () {}
1692
1692
1693
+ /**
1694
+ * Resets the statistics reported by Redis using the INFO command (`info()` function).
1695
+ * These are the counters that are reset:
1696
+ * - Keyspace hits
1697
+ * - Keyspace misses
1698
+ * - Number of commands processed
1699
+ * - Number of connections received
1700
+ * - Number of expired keys
1701
+ *
1702
+ * @return bool: `TRUE` in case of success, `FALSE` in case of failure.
1703
+ * @example $redis->resetStat();
1704
+ * @link http://redis.io/commands/config-resetstat
1705
+ */
1706
+ public function resetStat () {}
1707
+
1693
1708
/**
1694
1709
* Returns the time to live left for a given key, in seconds. If the key doesn't exist, FALSE is returned.
1695
1710
*
@@ -1739,7 +1754,7 @@ public function msetnx($array) {}
1739
1754
/**
1740
1755
* Pops a value from the tail of a list, and pushes it to the front of another list.
1741
1756
* Also return this value.
1742
- *
1757
+ *
1743
1758
* @since redis >= 1.1
1744
1759
* @param string $srcKey
1745
1760
* @param string $dstKey
@@ -1973,7 +1988,7 @@ public function zDeleteRangeByScore($key, $start, $end) {}
1973
1988
1974
1989
/**
1975
1990
* Deletes the elements of the sorted set stored at the specified key which have rank in the range [start,end].
1976
- *
1991
+ *
1977
1992
* @param string $key
1978
1993
* @param int $start
1979
1994
* @param int $end
@@ -2023,7 +2038,7 @@ public function zSize($key) {}
2023
2038
2024
2039
/**
2025
2040
* Returns the score of a given member in the specified sorted set.
2026
- *
2041
+ *
2027
2042
* @param string $key
2028
2043
* @param string $member
2029
2044
* @return float
@@ -2066,7 +2081,7 @@ public function zRevRank($key, $member) {}
2066
2081
2067
2082
/**
2068
2083
* Increments the score of a member from a sorted set by a given amount.
2069
- *
2084
+ *
2070
2085
* @param string $key
2071
2086
* @param float $value (double) value that will be added to the member's score
2072
2087
* @param string $member
@@ -2166,7 +2181,7 @@ public function zInter($Output, $ZSetKeys, $Weights, $aggregateFunction) {}
2166
2181
2167
2182
/**
2168
2183
* Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned.
2169
- *
2184
+ *
2170
2185
* @param string $key
2171
2186
* @param string $hashKey
2172
2187
* @param string $value
@@ -2405,3 +2420,5 @@ public function hMset($key, $hashKeys) {}
2405
2420
public function hMGet ($ key , $ hashKeys ) {}
2406
2421
2407
2422
}
2423
+
2424
+ class RedisException extends Exception {}
0 commit comments