Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul DelRe <pdelre@gmail.com>2020-01-02 16:47:00 +0300
committerMichael Grunder <michael.grunder@gmail.com>2020-01-21 20:06:47 +0300
commitd07a8df67cb66672c920aaa5131ff2bbab50a840 (patch)
tree21f67c57df2efef1217deb361949153b455f5875 /README.markdown
parenta107c9fc08e05c7961750be9dfaec661ca1cbefb (diff)
Update README with missing deprecation notes
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown14
1 files changed, 11 insertions, 3 deletions
diff --git a/README.markdown b/README.markdown
index 2bf59d6a..a9a3f759 100644
--- a/README.markdown
+++ b/README.markdown
@@ -206,6 +206,8 @@ $redis->connect('/tmp/redis.sock'); // unix domain socket.
$redis->connect('127.0.0.1', 6379, 1, NULL, 100); // 1 sec timeout, 100ms delay between reconnection attempts.
~~~
+**Note:** `open` is an alias for `connect` and will be removed in future versions of phpredis.
+
### pconnect, popen
-----
_**Description**_: Connects to a Redis instance or reuse a connection already established with `pconnect`/`popen`.
@@ -247,6 +249,8 @@ $redis->pconnect('127.0.0.1', 6379, 2.5, 'x'); // x is sent as persistent_id and
$redis->pconnect('/tmp/redis.sock'); // unix domain socket - would be another connection than the four before.
~~~
+**Note:** `popen` is an alias for `pconnect` and will be removed in future versions of phpredis.
+
### auth
-----
_**Description**_: Authenticate the connection using a password.
@@ -1171,8 +1175,6 @@ $redis->get('key'); /* 'value1value2' */
-----
_**Description**_: Return a substring of a larger string
-*Note*: substr also supported but deprecated in redis.
-
##### *Parameters*
*key*
*start*
@@ -1188,6 +1190,8 @@ $redis->getRange('key', 0, 5); /* 'string' */
$redis->getRange('key', -5, -1); /* 'value' */
~~~
+**Note**: `substr` is an alias for `getRange` and will be removed in future versions of phpredis.
+
### setRange
-----
_**Description**_: Changes a substring of a larger string.
@@ -2430,6 +2434,8 @@ array(3) {
~~~
The order is random and corresponds to redis' own internal representation of the set structure.
+**Note:** `sGetMembers` is an alias for `sMembers` and will be removed in future versions of phpredis.
+
### sMove
-----
_**Description**_: Moves the specified member from the set at srcKey to the set at dstKey.
@@ -2729,9 +2735,11 @@ _**Description**_: Returns the cardinality of an ordered set.
$redis->zAdd('key', 0, 'val0');
$redis->zAdd('key', 2, 'val2');
$redis->zAdd('key', 10, 'val10');
-$redis->zSize('key'); /* 3 */
+$redis->zCard('key'); /* 3 */
~~~
+**Note**: `zSize` is an alias for `zCard` and will be removed in future versions of phpredis.
+
### zCount
-----
_**Description**_: Returns the *number* of elements of the sorted set stored at the specified key which have scores in the range [start,end]. Adding a parenthesis before `start` or `end` excludes it from the range. +inf and -inf are also valid limits.