miniredis icon indicating copy to clipboard operation
miniredis copied to clipboard

Support for JSONSet and JSONGet from go-rejson

Open lloiacono opened this issue 6 years ago • 3 comments

Are there any plans to introduce support for go-rejson?

lloiacono avatar Jul 08 '19 13:07 lloiacono

Are there any plans to introduce support for go-rejson?

hi,

can you point to some documentation, and what you need exactly? Thanks!

alicebob avatar Jul 08 '19 13:07 alicebob

RedisJSON is a Redis module that implements ECMA-404 The JSON Data Interchange Standard as a native data type. It allows storing, updating and fetching JSON values from Redis keys (documents).

There are libraries that allow to easily use re-json with go-redis: https://github.com/nitishm/go-rejson

ie:

reJsonHandler := rejson.NewReJSONHandler()
reJsonHandler.SetGoRedisClient(redis.Client)

Would like to know if there are plans to support reJson functionality within miniredis?

lloiacono avatar Jul 08 '19 13:07 lloiacono

Hi, thanks again for your question.

I had a quick look at the module, which is pretty neat.

I personally don't have the plan to add commands from reJson, but I likely won't reject a (well tested) PR. I do think it would be quite a bit of work to make and test, though.

alicebob avatar Jul 20 '19 16:07 alicebob