delano / redis-dump

Redis to JSON and nack again
https://rubygems.org/gems/redis-dump
MIT License
825 stars 124 forks source link

Support redis stack key types - ReJSON, Stream #41

Open ltx0633 opened 5 months ago

ltx0633 commented 5 months ago

stack

 redis-dump -a 'xxx' -u prod_redis-stack_master:6379 > stak-full.json

get error: ERROR (TypeError): Unknown type: ReJSON-RL

lyonvip commented 3 months ago

stack

 redis-dump -a 'xxx' -u prod_redis-stack_master:6379 > stak-full.json

get error: ERROR (TypeError): Unknown type: ReJSON-RL

I'm getting a similar error as below:

root@redis-server-6957c56bf7-wgfjk:/# redis-dump -u :${REDIS_DEFAULT_PASSWORD}@127.0.0.1:6379 -d 3
ERROR (TypeError): Unknown type: stream
lyonvip commented 3 months ago

@delano Help!!!

delano commented 3 months ago

Hmm, that's odd. I'm finishing up work on a ticket from another project. I'll get to this one next.

I just started kicking the tires on Redis Stack myself so I have it running already in my dev environment. I also noticed riot. I haven't tried it out yet but that might do what you need.

delano commented 3 months ago

Adding ReJSON should be straightforward. @lyonvip Stream will take a bit longer so don't hold your breath!