Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d07a8df

Browse files
pdelremichael-grunder
authored andcommitted
Update README with missing deprecation notes
1 parent a107c9f commit d07a8df

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

README.markdown

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ $redis->connect('/tmp/redis.sock'); // unix domain socket.
206206
$redis->connect('127.0.0.1', 6379, 1, NULL, 100); // 1 sec timeout, 100ms delay between reconnection attempts.
207207
~~~
208208

209+
**Note:** `open` is an alias for `connect` and will be removed in future versions of phpredis.
210+
209211
### pconnect, popen
210212
-----
211213
_**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
247249
$redis->pconnect('/tmp/redis.sock'); // unix domain socket - would be another connection than the four before.
248250
~~~
249251

252+
**Note:** `popen` is an alias for `pconnect` and will be removed in future versions of phpredis.
253+
250254
### auth
251255
-----
252256
_**Description**_: Authenticate the connection using a password.
@@ -1171,8 +1175,6 @@ $redis->get('key'); /* 'value1value2' */
11711175
-----
11721176
_**Description**_: Return a substring of a larger string
11731177

1174-
*Note*: substr also supported but deprecated in redis.
1175-
11761178
##### *Parameters*
11771179
*key*
11781180
*start*
@@ -1188,6 +1190,8 @@ $redis->getRange('key', 0, 5); /* 'string' */
11881190
$redis->getRange('key', -5, -1); /* 'value' */
11891191
~~~
11901192

1193+
**Note**: `substr` is an alias for `getRange` and will be removed in future versions of phpredis.
1194+
11911195
### setRange
11921196
-----
11931197
_**Description**_: Changes a substring of a larger string.
@@ -2430,6 +2434,8 @@ array(3) {
24302434
~~~
24312435
The order is random and corresponds to redis' own internal representation of the set structure.
24322436

2437+
**Note:** `sGetMembers` is an alias for `sMembers` and will be removed in future versions of phpredis.
2438+
24332439
### sMove
24342440
-----
24352441
_**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.
27292735
$redis->zAdd('key', 0, 'val0');
27302736
$redis->zAdd('key', 2, 'val2');
27312737
$redis->zAdd('key', 10, 'val10');
2732-
$redis->zSize('key'); /* 3 */
2738+
$redis->zCard('key'); /* 3 */
27332739
~~~
27342740

2741+
**Note**: `zSize` is an alias for `zCard` and will be removed in future versions of phpredis.
2742+
27352743
### zCount
27362744
-----
27372745
_**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.

0 commit comments

Comments
 (0)