aviggiano / redis-roaring

Roaring Bitmaps for Redis
MIT License
348 stars 56 forks source link

Is there any way to load serializable roaringbitmap into redis? #62

Closed sydt2014 closed 4 years ago

sydt2014 commented 5 years ago

I already generate some roaringbitmap saved in serializable file on disk. Is there is any way load these roaringbitmap into redis and remain roaringbitmap data type?

aviggiano commented 5 years ago

Hey, thank you for using this module. Yes there is, I believe you just need to SAVE/LOAD your redis data, but I need to create a short example to show how to do it, because I don't remember exactly. I'll get back to you soon.

aviggiano commented 5 years ago

Hello @sydt2014, I believe you can load the RDB file after issuing a SAVE command to write your roaring bitmaps to disk. Let me know if you have any problems.