Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryRedis ¶
type MemoryRedis struct {
// contains filtered or unexported fields
}
MemoryRedis is an in memory redis connection implementation
func NewMemoryRedis ¶
func NewMemoryRedis() *MemoryRedis
NewMemoryRedis creates a new in-memory redis stub. It must be noted that the stub only partially redis-compliant, not all commands (such as MULTI/EXEC) are supported. WARNING: should be used for testing/dev purposes only!
func (*MemoryRedis) Address ¶
func (mr *MemoryRedis) Address() string
Address returns the tcp (local) address of this MemoryRedis server
func (*MemoryRedis) Dial ¶
Dial to the embedded Go Redis Server, and return the established connection if possible.
func (*MemoryRedis) Listen ¶
func (mr *MemoryRedis) Listen()
Listen to any incoming TCP requests, and process them in the embedded Go Redis Server.
Click to show internal directories.
Click to hide internal directories.