1// Package goredis is a client for the redis and ledisdb. 2// 3// Client 4// 5// The client is the primary interface for redis. You must first create a client with redis address for working. 6// 7// c := NewClient("127.0.0.1:6380") 8// 9// The most important function for client is Do function to send commands to remote server. 10// 11// reply, err := c.Do("ping") 12// 13// reply, err := c.Do("set", "key", "value") 14// 15// reply, err := c.Do("get", "key") 16// 17// Connection 18// 19// You can use an independent connection to send commands. 20// 21// //get a connection 22// conn, _ := c.Get() 23// 24// //connection send command 25// conn.Do("ping") 26// 27// Reply Helper 28// 29// You can use reply helper to convert a reply to a specific type. 30// 31// exists, err := Bool(c.Do("exists", "key")) 32// 33// score, err := Int64(c.Do("zscore", "key", "member")) 34package goredis 35