code | type | title | description |
---|---|---|---|
true |
page |
pfadd |
MemoryStorage:pfadd |
Adds elements to an HyperLogLog data structure.
Arguments | Type | Description |
---|---|---|
key |
string | Key identifier |
elements |
array | Elements to add to the HyperLogLog structure |
options |
JSON Object | Optional parameters |
callback |
function | Callback |
Option | Type | Description | Default |
---|---|---|---|
queuable |
boolean | Make this request queuable or not | true |
Returns the MemoryStorage
object to allow chaining.
Returns a boolean specifying if the operation was successful or not.
<<< ./snippets/pfadd-1.java
Callback response:
true