Documentation ¶
Index ¶
- type Store
- func (_m *Store) Add(key string, value interface{}, sec time.Duration) bool
- func (_m *Store) ClearPrefix(delPrefix string) error
- 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) Store(storeName string) contractscache.IStore
- func (_m *Store) WithContext(ctx context.Context) contractscache.IStore
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) ClearPrefix ¶
Put provides a mock function with given fields: key, value, sec
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
func (*Store) WithContext ¶
func (_m *Store) WithContext(ctx context.Context) contractscache.IStore
WithContext provides a mock function with given fields: ctx
Click to show internal directories.
Click to hide internal directories.