Documentation ¶
Index ¶
- func NewRedisCache(redis *redis.Client) *redisCache.Cache
- func NewRedisCacheCreateFunc(prefix string, ttl time.Duration) func(c *redis.Client) *Redis
- type Redis
- func (r *Redis) Delete(ctx context.Context, key string) error
- func (r *Redis) Get(ctx context.Context, key string, obj interface{}) error
- func (r *Redis) HExpire(ctx context.Context, key string) error
- func (r *Redis) HGet(ctx context.Context, key string, field string) (string, error)
- func (r *Redis) HGetAll(ctx context.Context, key string) (map[string]string, error)
- func (r *Redis) HSet(ctx context.Context, key string, field string, obj interface{}) error
- func (r *Redis) MGet(ctx context.Context, keys ...string) ([]interface{}, error)
- func (r *Redis) MSet(ctx context.Context, obj ...interface{}) error
- func (r *Redis) ScanD(ctx context.Context, match string) error
- func (r *Redis) Set(ctx context.Context, key string, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCache ¶
func NewRedisCache(redis *redis.Client) *redisCache.Cache
Types ¶
Click to show internal directories.
Click to hide internal directories.