kromdaniel / rejonson Goto Github PK
View Code? Open in Web Editor NEWGolang Redis Rejson extension built upon go-redis
Golang Redis Rejson extension built upon go-redis
Please notice all the commands can now get full jsonpath, i.e. dynamic paths that start with a $ sign.
As a result all the commands can now return multi parts of the JSON.
see: https://oss.redis.com/redisjson/commands/
ExtendClient
currently on works with the unversioned branch of go-redis (which is currently stuck at v6 for me). The go-redis project currently recommends using their v8 client which gives me a type error.
One nice thing added into the v8 client is the UniversalClient
(https://pkg.go.dev/github.com/go-redis/redis/v8#UniversalClient) which will automatically create a regular redis, sentinel, or cluster client based on opts passed.
I'm not sure how difficult these would be to support, but if you have a general outline of what needs added I can try adding in a PR for them if it's not something you plan or have time to add.
Trying to save a json using reJonson. getting Error
log.Println("Map",saveJson) //convert to unsafe text jsonString:=bytes.NewBuffer(jsonBytes).String() _,err=reJsonClient.JsonSet(key,".",jsonString).Result() if err!=nil{ log.Println("error",err) return false }
Error Log:
error ERR unknown command
JSON.SET, with args beginning with:
test1,
.,
{"check":"salary","future":"uncertain","satisfied":"work"}`,
`
I am connecting to a redis service that requires a password:
goRedisClient := redis.NewClient(&redis.Options{
Addr: "abc.com:8000",
Password: "xxxxxxxxx",
DB: 0,
})
When I call client.JsonGet()
method, I get an error message:
ERR Client sent AUTH, but no password is set
Looks like something went wrong about the password.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.