mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
HyperLogLog regression test for issue #1762.
This commit is contained in:
parent
04d901aed5
commit
a9e62ab9fa
@ -156,4 +156,15 @@ start_server {tags {"hll"}} {
|
||||
r pfadd hll 1 2 3
|
||||
llength [r pfdebug getreg hll]
|
||||
} {16384}
|
||||
|
||||
test {PFADD / PFCOUNT cache invalidation works} {
|
||||
r del hll
|
||||
r pfadd hll a b c
|
||||
r pfcount hll
|
||||
assert {[r getrange hll 15 15] eq "\x00"}
|
||||
r pfadd hll a b c
|
||||
assert {[r getrange hll 15 15] eq "\x00"}
|
||||
r pfadd hll 1 2 3
|
||||
assert {[r getrange hll 15 15] eq "\x80"}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user