Documentation ¶
Index ¶
- type MockCache
- func (r *MockCache) AddDelErr(key string, err error)
- func (r *MockCache) AddGetErr(key string, err error)
- func (r *MockCache) AddSetErr(key string, err error)
- func (r *MockCache) AddSetsErr(key string, err error)
- func (r *MockCache) Del(key string) error
- func (r *MockCache) DelSetsErr(key string)
- func (r *MockCache) Exists(ks ...string) (int, error)
- func (r *MockCache) Get(key string) (string, error)
- func (r *MockCache) GetDel(key string) (string, error)
- func (r *MockCache) SAdd(set string, key string) error
- func (r *MockCache) SIsmember(set string, key string) (bool, error)
- func (r *MockCache) Set(key string, value string, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
func NewMockCache ¶
func NewMockCache() *MockCache
func (*MockCache) AddSetsErr ¶
func (*MockCache) DelSetsErr ¶
Click to show internal directories.
Click to hide internal directories.