Closed woorui closed 2 years ago
cf := cuckoo.NewFilter(4, 9, 3900, cuckoo.TableTypePacked)
b := cf.Encode()
redis.Set(your_key, b)
data := redis.Get(your_key)
newCf, _ := cuckoo.Decode(data)
Encode() return []byte slice represent your filter, you can save it on Redis. Then you can get []byte data from Redis and use Decode(data) to rebuild your filter
https://github.com/woorui/cuckoo-filter-redis
Is this Wrapping ok ?
https://github.com/woorui/cuckoo-filter-redis
Is this Wrapping ok ?
Looks ok
ok, many thanks
I want persistence the cuckoo-filter for my distributed service, I would like to use redis.
Can you give me any suggestion on my issue ?
thanks.