package
2.0.0+incompatible
Repository: https://github.com/gomodule/redigo.git
Documentation: pkg.go.dev
# Functions
Bool is a helper that converts a command reply to a boolean.
Bytes is a helper that converts a command reply to a slice of bytes.
ByteSlices is a helper that converts an array command reply to a [][]byte.
Dial connects to the Redis server at the given network and address using the specified options.
DialConnectTimeout specifies the timeout for connecting to the Redis server when no DialNetDial option is specified.
DialDatabase specifies the database to select when dialing a connection.
DialKeepAlive specifies the keep-alive period for TCP connections to the Redis server when no DialNetDial option is specified.
DialNetDial specifies a custom dial function for creating TCP connections, otherwise a net.Dialer customized via the other options is used.
DialPassword specifies the password to use when connecting to the Redis server.
DialReadTimeout specifies the timeout for reading a single command reply.
DialTimeout acts like Dial but takes timeouts for establishing the connection to the server, writing a command and reading a reply.
DialTLSConfig specifies the config to use when a TLS connection is dialed.
DialTLSSkipVerify disables server name verification when connecting over TLS.
DialURL connects to a Redis server at the given URL using the Redis URI scheme.
DialUseTLS specifies whether TLS should be used when connecting to the server.
DialWriteTimeout specifies the timeout for writing a single command.
DoWithTimeout executes a Redis command with the specified read timeout.
Float64 is a helper that converts a command reply to 64 bit float.
Float64s is a helper that converts an array command reply to a []float64.
Int is a helper that converts a command reply to an integer.
Int64 is a helper that converts a command reply to 64 bit integer.
Int64Map is a helper that converts an array of strings (alternating key, value) into a map[string]int64.
Int64s is a helper that converts an array command reply to a []int64.
IntMap is a helper that converts an array of strings (alternating key, value) into a map[string]int.
Ints is a helper that converts an array command reply to a []in.
MultiBulk is a helper that converts an array command reply to a []interface{}.
NewConn returns a new Redigo connection for the given net connection.
NewLoggingConn returns a logging wrapper around a connection.
NewPool creates a new pool.
NewScript returns a new script object.
Positions is a helper that converts an array of positions (lat, long) into a [][2]float64.
ReceiveWithTimeout receives a reply with the specified read timeout.
Scan copies from src to the values pointed at by dest.
ScanSlice scans src to the slice pointed to by dest.
ScanStruct scans alternating names and values from src to a struct.
String is a helper that converts a command reply to a string.
StringMap is a helper that converts an array of strings (alternating key, value) into a map[string]string.
Strings is a helper that converts an array command reply to a []string.
Uint64 is a helper that converts a command reply to 64 bit integer.
Values is a helper that converts an array command reply to a []interface{}.
# Variables
ErrNil indicates that a reply value is nil.
ErrPoolExhausted is returned from a pool connection method (Do, Send, Receive, Flush, Err) when the maximum number of database connections in the pool has been reached.
# Structs
DialOption specifies an option for dialing a Redis server.
Message represents a message notification.
Pong represents a pubsub pong notification.
Pool maintains a pool of connections.
PoolStats contains pool statistics.
PubSubConn wraps a Conn with convenience methods for subscribers.
Script encapsulates the source, hash and key count for a Lua script.
Subscription represents a subscribe or unsubscribe notification.
# Interfaces
Argument is the interface implemented by an object which wants to control how the object is converted to Redis bulk strings.
Conn represents a connection to a Redis server.
ConnWithTimeout is an optional interface that allows the caller to override a connection's default read timeout.
Scanner is implemented by an object which wants to control its value is interpreted when read from Redis.