Giter Site home page Giter Site logo

rejonson's Issues

go-redis/v8 and UniversalClient support

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.

Returning Error on Setting JSON

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 commandJSON.SET, with args beginning with: test1, ., {"check":"salary","future":"uncertain","satisfied":"work"}`,

`

ERR Client sent AUTH, but no password is set

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.