K - V - public class DefaultHyperLogLogOperations<K,V> extends Object implements HyperLogLogOperations<K,V>
| Constructor and Description |
|---|
DefaultHyperLogLogOperations(RedisTemplate<K,V> template) |
| Modifier and Type | Method and Description |
|---|---|
Long |
add(K key,
V... values)
Adds the given values to the key.
|
void |
delete(K key)
Removes the given key.
|
RedisOperations<K,V> |
getOperations() |
Long |
size(K... keys)
Gets the current number of elements within the key.
|
Long |
union(K destination,
K... sourceKeys)
Merges all values of given sourceKeys into destination key.
|
public DefaultHyperLogLogOperations(RedisTemplate<K,V> template)
public Long add(K key, V... values)
HyperLogLogOperationsadd in interface HyperLogLogOperations<K,V>key - must not be null.values - must not be null.public Long size(K... keys)
HyperLogLogOperationssize in interface HyperLogLogOperations<K,V>keys - must not be null or empty.public Long union(K destination, K... sourceKeys)
HyperLogLogOperationsunion in interface HyperLogLogOperations<K,V>destination - key of HyperLogLog to move source keys into.sourceKeys - must not be null or empty.public void delete(K key)
HyperLogLogOperationsdelete in interface HyperLogLogOperations<K,V>key - must not be null.public RedisOperations<K,V> getOperations()