Giter VIP home page Giter VIP logo

Comments (3)

alash3al avatar alash3al commented on July 23, 2024

Screen Shot 2019-06-10 at 4 37 08 PM

the first pic in your issue seems that you inserted a hex encoded string not a json string

from redix.

kekek avatar kekek commented on July 23, 2024

I had instered my data by redis-client for go, and got the result. This is my code after :

func setListData(code string, sig sync.Signal, val []string) error {
	db := storage.Redis().Get()
	defer db.Close()

	key := getListDataKey(code, sig)

	args := []interface{}{key}
	for i := range val {
		args = append(args, val[i])
	}
	_, err := redis.ByteSlices(db.Do("LPUSHU", args...))
	if err != nil {
		return err
	}

	return nil
}

May be I'll test this tomorrow to find what happend

from redix.

kekek avatar kekek commented on July 23, 2024

I test this from redis-cli and got the same result.
image

May be this is caused by different version. This is the envriment.


OS : Macos Darwin Kernel Version 16.0.0
redis-cli : 3.2.3
redix-server [docker images]:  alash3al/redix                          latest              8b51be953c19        5 months ago        438MB

from redix.

Related Issues (20)

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.