Documentation ¶
Overview ¶
Package testredis provides an embedded Redis instance for unit testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis interface { // Addr gets the address of this Redis Addr() string // Client opens a new client to this Redis Client() *redis.Client // Start starts an unstarted Redis instance Start() // Close closes this Redis and associated resources Close() error }
Redis is a testing Redis
func OpenUnstarted ¶
OpenUnstarted opens a new test Redis but not start it.
Click to show internal directories.
Click to hide internal directories.