Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mocker ¶
type Mocker interface {
Rediser
QueriesRun() []onedb.MethodsRun
SaveMethodCall(name string, arguments []interface{})
VerifyNextCommand(t *testing.T, name string, expected ...interface{})
}
Mocker interface includes all the Rediser interface, plus three additional methods to help with testing
type Rediser ¶
type Rediser interface {
Close() error
Del(key string) error
Do(command string, args ...interface{}) (interface{}, error)
Get(key string) (string, error)
GetStruct(key string, result interface{}) error
SetWithExpire(key string, value interface{}, expireSeconds int) error
}
Rediser is the public interface for querying Redis
Click to show internal directories.
Click to hide internal directories.