Method: Redis#pfcount

Defined in:
lib/redis.rb

#pfcount(key) ⇒ Fixnum

Get the approximate cardinality of members added to HyperLogLog structure.

Parameters:

  • key (String)

Returns:

  • (Fixnum)


2454
2455
2456
2457
2458
# File 'lib/redis.rb', line 2454

def pfcount(key)
  synchronize do |client|
    client.call([:pfcount, key])
  end
end