R/hyperloglog.R

Defines functions redisPfmerge redisPfcount redisPfadd

Documented in redisPfadd redisPfcount redisPfmerge

# Redis Hyperloglog functions

redisPfadd <- function(key, elements)
{
  do.call(.redisCmd, lapply(c(list('PFADD'), as.list(key), as.list(elements)), charToRaw))
}

redisPfcount <- function(keys)
{
  do.call(.redisCmd, lapply(c(list('PFCOUNT'), as.list(keys)), charToRaw))
}

redisPfmerge <- function(destkey, sourcekeys)
{
  do.call(.redisCmd, lapply(c(list('PFMERGE'), as.list(destkey), as.list(sourcekeys)), charToRaw))
}
bwlewis/rredis documentation built on Jan. 3, 2022, 4:53 p.m.