You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: `substr` is an alias for `getRange` and will be removed in future versions of phpredis.
1194
+
1191
1195
### setRange
1192
1196
-----
1193
1197
_**Description**_: Changes a substring of a larger string.
@@ -2430,6 +2434,8 @@ array(3) {
2430
2434
~~~
2431
2435
The order is random and corresponds to redis' own internal representation of the set structure.
2432
2436
2437
+
**Note:**`sGetMembers` is an alias for `sMembers` and will be removed in future versions of phpredis.
2438
+
2433
2439
### sMove
2434
2440
-----
2435
2441
_**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.
2729
2735
$redis->zAdd('key', 0, 'val0');
2730
2736
$redis->zAdd('key', 2, 'val2');
2731
2737
$redis->zAdd('key', 10, 'val10');
2732
-
$redis->zSize('key'); /* 3 */
2738
+
$redis->zCard('key'); /* 3 */
2733
2739
~~~
2734
2740
2741
+
**Note**: `zSize` is an alias for `zCard` and will be removed in future versions of phpredis.
2742
+
2735
2743
### zCount
2736
2744
-----
2737
2745
_**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