Skip to content

Commit

Permalink
Add back the long description of pfcount. See #1435.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 21, 2016
1 parent 25ee729 commit cacc505
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion source/vibe/db/redis/redis.d
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,20 @@ struct RedisDatabase {

/// Adds one or more Keys to a HyperLogLog data structure .
long pfadd(ARGS...)(string key, ARGS args) { return request!long("PFADD", key, args); }
/// Returns the approximated cardinality computed by the HyperLogLog data structure stored at the specified key.

/** Returns the approximated cardinality computed by the HyperLogLog data
structure stored at the specified key.
When called with a single key, returns the approximated cardinality
computed by the HyperLogLog data structure stored at the specified
variable, which is 0 if the variable does not exist.
When called with multiple keys, returns the approximated cardinality
of the union of the HyperLogLogs passed, by internally merging the
HyperLogLogs stored at the provided keys into a temporary HyperLogLog.
*/
long pfcount(scope string[] keys...) { return request!long("PFCOUNT", keys); }

/// Merge multiple HyperLogLog values into a new one.
void pfmerge(ARGS...)(string destkey, ARGS args) { request("PFMERGE", destkey, args); }

Expand Down

0 comments on commit cacc505

Please sign in to comment.