Skip to content

Commit bdfdcab

Browse files
committed
Add class RedisException & function resetStat()
1 parent 43b52a2 commit bdfdcab

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

redisphp.php

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ public function sContains($key, $value) {}
915915

916916
/**
917917
* Returns the cardinality of the set identified by key.
918-
*
918+
*
919919
* @param string $key
920920
* @return int the cardinality of the set identified by key, 0 if the set doesn't exist.
921921
* @link http://redis.io/commands/scard
@@ -1416,7 +1416,7 @@ public function auth($password) {}
14161416

14171417
/**
14181418
* Starts the background rewrite of AOF (Append-Only File)
1419-
*
1419+
*
14201420
* @return bool: TRUE in case of success, FALSE in case of failure.
14211421
* @link http://redis.io/commands/bgrewriteaof
14221422
* @example $redis->bgrewriteaof();
@@ -1544,7 +1544,7 @@ public function getRange($key, $start, $end) {}
15441544

15451545
/**
15461546
* Return a substring of a larger string
1547-
*
1547+
*
15481548
* @deprecated
15491549
* @param type $key
15501550
* @param type $start
@@ -1690,6 +1690,21 @@ public function sort($key, $option = null) {}
16901690
*/
16911691
public function info() {}
16921692

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+
16931708
/**
16941709
* Returns the time to live left for a given key, in seconds. If the key doesn't exist, FALSE is returned.
16951710
*
@@ -1739,7 +1754,7 @@ public function msetnx($array) {}
17391754
/**
17401755
* Pops a value from the tail of a list, and pushes it to the front of another list.
17411756
* Also return this value.
1742-
*
1757+
*
17431758
* @since redis >= 1.1
17441759
* @param string $srcKey
17451760
* @param string $dstKey
@@ -1973,7 +1988,7 @@ public function zDeleteRangeByScore($key, $start, $end) {}
19731988

19741989
/**
19751990
* Deletes the elements of the sorted set stored at the specified key which have rank in the range [start,end].
1976-
*
1991+
*
19771992
* @param string $key
19781993
* @param int $start
19791994
* @param int $end
@@ -2023,7 +2038,7 @@ public function zSize($key) {}
20232038

20242039
/**
20252040
* Returns the score of a given member in the specified sorted set.
2026-
*
2041+
*
20272042
* @param string $key
20282043
* @param string $member
20292044
* @return float
@@ -2066,7 +2081,7 @@ public function zRevRank($key, $member) {}
20662081

20672082
/**
20682083
* Increments the score of a member from a sorted set by a given amount.
2069-
*
2084+
*
20702085
* @param string $key
20712086
* @param float $value (double) value that will be added to the member's score
20722087
* @param string $member
@@ -2166,7 +2181,7 @@ public function zInter($Output, $ZSetKeys, $Weights, $aggregateFunction) {}
21662181

21672182
/**
21682183
* Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned.
2169-
*
2184+
*
21702185
* @param string $key
21712186
* @param string $hashKey
21722187
* @param string $value
@@ -2405,3 +2420,5 @@ public function hMset($key, $hashKeys) {}
24052420
public function hMGet($key, $hashKeys) {}
24062421

24072422
}
2423+
2424+
class RedisException extends Exception {}

0 commit comments

Comments
 (0)