Go language use Redis

Redis

  • redis is an open source key-value high-performance memory database, can use it as a data structure of the remote.
  • Supported value type is very large, such as string, list (list), set (collection), hash tables, etc.
  • redis very high performance, stand-alone can be achieved 15w qps, usually suitable for caching.

use

import( 	
	“github.com/garyburd/redigo/redis”
)

connection

c, err := redis.Dial("tcp", "localhost:6379")

command

Redis commands

Published 34 original articles · won praise 17 · views 4873

Guess you like

Origin blog.csdn.net/weixin_44879611/article/details/104213647