Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
type RedisStore struct {
RedisClient *redis.Client
}
RedisStore store http response in redis
func NewRedisStore ¶
func NewRedisStore(redisClient *redis.Client) *RedisStore
NewRedisStore create a redis memory store with redis client
func (*RedisStore) Delete ¶
func (store *RedisStore) Delete(key string) error
Delete remove key in redis, do nothing if key doesn't exist
func (*RedisStore) Get ¶
func (store *RedisStore) Get(key string, value interface{}) error
Get get key in redis, if key doesn't exist, return ErrCacheMiss
Click to show internal directories.
Click to hide internal directories.