Skip to content

Commit 75a6f3f

Browse files
committed
HyperLogLogs - pfAdd
1 parent 8739fa5 commit 75a6f3f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.markdown

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ If you've found phpredis useful and would like to buy the maintainers a coffee (
3333
* [Lists](#lists)
3434
* [Sets](#sets)
3535
* [Sorted sets](#sorted-sets)
36+
* [HyperLogLogs](#hyperloglogs)
3637
* [Geocoding](#geocoding)
3738
* [Streams](#streams)
3839
* [Pub/sub](#pubsub)
@@ -3114,6 +3115,32 @@ while($arr_matches = $redis->zScan('zset', $it, '*pattern*')) {
31143115
}
31153116
~~~
31163117

3118+
## HyperLogLogs
3119+
3120+
### pfAdd
3121+
-----
3122+
3123+
##### *Prototype*
3124+
~~~php
3125+
$redis->pfAdd($key, Array $elements);
3126+
~~~
3127+
3128+
_**Description**_: Adds the specified elements to the specified HyperLogLog.
3129+
3130+
##### *Return value*
3131+
*Integer*: 1 if at least 1 HyperLogLog internal register was altered. 0 otherwise.
3132+
3133+
##### *Example*
3134+
~~~php
3135+
$redis->pfAdd('hll', ['a', 'b', 'c']);
3136+
~~~
3137+
3138+
### pfCount
3139+
-----
3140+
3141+
### pfMerge
3142+
-----
3143+
31173144
## Geocoding
31183145

31193146
### geoAdd

0 commit comments

Comments
 (0)