Documentation ¶
Index ¶
- type Store
- func (_m *Store) Add(key string, value interface{}, sec time.Duration) bool
- func (_m *Store) Flush() bool
- func (_m *Store) Forever(key string, value interface{}) bool
- func (_m *Store) Forget(key string) bool
- func (_m *Store) Get(key string, def interface{}) interface{}
- func (_m *Store) GetBool(key string, def bool) bool
- func (_m *Store) GetInt(key string, def int) int
- func (_m *Store) GetString(key string, def string) string
- func (_m *Store) Has(key string) bool
- func (_m *Store) Pull(key string, def interface{}) interface{}
- func (_m *Store) Put(key string, value interface{}, sec time.Duration) error
- func (_m *Store) Remember(key string, ttl time.Duration, callback func() interface{}) (interface{}, error)
- func (_m *Store) RememberForever(key string, callback func() interface{}) (interface{}, error)
- func (_m *Store) WithContext(ctx context.Context) cache.Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
func NewStore(t mockConstructorTestingTNewStore) *Store
NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Store) GetBool ¶ added in v1.1.0
GetBool provides a mock function with given fields: key, def
func (*Store) GetString ¶ added in v1.1.0
GetString provides a mock function with given fields: key, def
func (*Store) Remember ¶
func (_m *Store) Remember(key string, ttl time.Duration, callback func() interface{}) (interface{}, error)
Remember provides a mock function with given fields: key, ttl, callback
func (*Store) RememberForever ¶
RememberForever provides a mock function with given fields: key, callback
Click to show internal directories.
Click to hide internal directories.