Skip to content

Commit 82aa158

Browse files
committed
Add missing function lLen() alias lSize()
2 parents 1735891 + 3e98666 commit 82aa158

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

README.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ After that, your IDE, when you declare a class Redis will display a hint which m
44

55
### For example:
66

7-
$redis = new Redis();
8-
$redis->con<press Tab or press Ctrl+Space>
7+
$redis = new Redis();
8+
$redis->con<press Tab or press Ctrl+Space>
99

1010
### Warning:
1111

1212
Do not forget to declare a variable type $ redis
1313

14-
/**
15-
* Please do not forget to specify the variable type
16-
* @var Redis
17-
*/
18-
public $redis = null;
14+
/**
15+
* Please do not forget to specify the variable type
16+
* @var Redis
17+
*/
18+
public $redis = null;
1919

2020
![Example of use](https://github.com/ukko/phpredis-phpdoc/raw/master/redisphp.png)
2121

redisphp.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,17 +627,25 @@ public function brPop( array $keys ) {}
627627
* @param string $key
628628
* @return int The size of the list identified by Key exists.
629629
* bool FALSE if the data type identified by Key is not list
630-
* @link http://redis.io/commands/lsize
630+
* @link http://redis.io/commands/llen
631631
* @example
632632
* <pre>
633633
* $redis->rPush('key1', 'A');
634634
* $redis->rPush('key1', 'B');
635635
* $redis->rPush('key1', 'C'); // key1 => [ 'A', 'B', 'C' ]
636-
* $redis->lSize('key1'); // 3
636+
* $redis->lLen('key1'); // 3
637637
* $redis->rPop('key1');
638-
* $redis->lSize('key1'); // 2
638+
* $redis->lLen('key1'); // 2
639639
* </pre>
640640
*/
641+
public function lLen( $key ) {}
642+
643+
/**
644+
* @see lLen()
645+
* @param string $key
646+
* @param int $index
647+
* @link http://redis.io/commands/llen
648+
*/
641649
public function lSize( $key ) {}
642650

643651

0 commit comments

Comments
 (0)