标签:range 输出 rpo nil div net blog port ack
package main import ( "fmt" "github.com/go-redis/redis" ) func main() { client := redis.NewClient(&redis.Options{ Addr: "127.0.0.1:6380", Password: "", DB: 0, }) var reply int64 var err error reply, err = client.LPush("key", "value1", "value2", "value3").Result() fmt.Printf("reply=%d err_lpush=%v\n", reply, err) }
输出:
reply=3 err_lpush=<nil>
读写队列的相关命令LPush,RPush,LRange,LPop,RPop的用法示例:https://blog.csdn.net/pengpengzhou/article/details/108361064
标签:range 输出 rpo nil div net blog port ack
原文地址:https://www.cnblogs.com/cxscode/p/14551844.html