Documentation ¶
Overview ¶
Package redis provides an interface to query and modify a local server.
Index ¶
- Constants
- Variables
- func Assign(key, sockname, name string) error
- func Complete(args ...string) (c []string)
- func Connect() (redis.Conn, error)
- func Fprintln(w io.Writer, s string)
- func Get(key string) (s string, err error)
- func Hdel(key, field string, fields ...string) (i int, err error)
- func Hexists(key, field string) (i int, err error)
- func Hget(key, field string) (s string, err error)
- func Hkeys(key string) (keys []string, err error)
- func Hset(key, field string, v interface{}) (i int, err error)
- func Hwait(key, field, value string, dur time.Duration) error
- func IsReady() error
- func Keys(pattern string) (keys []string, err error)
- func Lrange(key string, start, stop int) (keys []string, err error)
- func NewRedisRegAtSock() (*rpc.Client, error)
- func NewRedisdAtSock() (net.Conn, error)
- func Publish(name string, depth ...int) (chan<- string, error)
- func Quotes(s string) string
- func Set(key string, value interface{}) (s string, err error)
- func Split(key string) []string
- func Subscribe(channel string) (psc redis.PubSubConn, err error)
- func Unassign(key string) error
Constants ¶
View Source
const License = `` /* 15871-byte string literal not displayed */
View Source
const Version = "v1.2.0"
Version format :: v<MAJOR>.<MINOR>.<PATCH>[-rc<CANDIDATE>]
Variables ¶
View Source
var DefaultHash string
Functions ¶
func NewRedisRegAtSock ¶
func NewRedisdAtSock ¶
func Publish ¶
Publish messages to the named redis channel. Messages sent through the returned channel are forwarded to the redis server until the channel is closed.
pub, err := redis.Publish(NAME[, DEPTH]) if err { panic() } defer close(pub) ... pub.Print("hello world")
The default message channel depth is 16.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package rpc provides remote calls to a redis server.
|
Package rpc provides remote calls to a redis server. |
args
Package args provides types for the redis RPC arguments.
|
Package args provides types for the redis RPC arguments. |
reg
Package reg provides an RPC to register redis handlers.
|
Package reg provides an RPC to register redis handlers. |
reply
Package reply provides types and methods for the redis RPC replies.
|
Package reply provides types and methods for the redis RPC replies. |
Click to show internal directories.
Click to hide internal directories.