Redis HyperLogLog: PFADD
PFADD key element [element ...]
Redis PFADD command is used to add all the element arguments to the HyperLogLog data structure stored at the key name specified as the first argument.
Syntax:
PFADD KEY_NAME ELEMENTS_TO_BE_ADDED
Available since
2.8.9.
Return Value
Integer reply, 1 or 0.
Return Value Type
Integer
Example: Redis PFADD
redis 127.0.0.1:6379> PFADD mykey a b c d e f g h i j (integer) 1 redis 127.0.0.1:6379> PFCOUNT mykey (integer) 10
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join