Documentation ¶
Index ¶
- type Encoder
- type NewEncoderT
- type NewRedisStoreT
- type RedisStore
- func (_m *RedisStore) Close() error
- func (_m *RedisStore) Del(ctx context.Context, keys ...string) *redis.IntCmd
- func (_m *RedisStore) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd
- func (_m *RedisStore) FlushAll(ctx context.Context) *redis.StatusCmd
- func (_m *RedisStore) Get(ctx context.Context, key string) *redis.StringCmd
- func (_m *RedisStore) Ping(ctx context.Context) *redis.StatusCmd
- func (_m *RedisStore) SAdd(ctx context.Context, key string, members ...interface{}) *redis.IntCmd
- func (_m *RedisStore) SMembers(ctx context.Context, key string) *redis.StringSliceCmd
- func (_m *RedisStore) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
Encoder is an autogenerated mock type for the Encoder type
func NewEncoder ¶
func NewEncoder(t NewEncoderT) *Encoder
NewEncoder creates a new instance of Encoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type NewEncoderT ¶ added in v0.0.2
type NewRedisStoreT ¶ added in v0.0.2
type RedisStore ¶
RedisStore is an autogenerated mock type for the RedisStore type
func NewRedisStore ¶
func NewRedisStore(t NewRedisStoreT) *RedisStore
NewRedisStore creates a new instance of RedisStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RedisStore) Close ¶ added in v0.0.2
func (_m *RedisStore) Close() error
Close provides a mock function with given fields:
func (*RedisStore) Expire ¶
func (_m *RedisStore) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd
Expire provides a mock function with given fields: ctx, key, expiration
func (*RedisStore) FlushAll ¶
func (_m *RedisStore) FlushAll(ctx context.Context) *redis.StatusCmd
FlushAll provides a mock function with given fields: ctx
func (*RedisStore) Ping ¶
func (_m *RedisStore) Ping(ctx context.Context) *redis.StatusCmd
Ping provides a mock function with given fields: ctx
func (*RedisStore) SMembers ¶
func (_m *RedisStore) SMembers(ctx context.Context, key string) *redis.StringSliceCmd
SMembers provides a mock function with given fields: ctx, key