Documentation ¶
Index ¶
- Constants
- type Redis
- func (r *Redis) Decrease(ctx context.Context, key string) (int64, error)
- func (r *Redis) Del(ctx context.Context, key string) error
- func (r *Redis) Exists(ctx context.Context, key string) (bool, error)
- func (r *Redis) Expire(ctx context.Context, key string, expire int) error
- func (r *Redis) Get(ctx context.Context, key string) (string, error)
- func (r *Redis) GetImpl() interface{}
- func (r *Redis) HashDel(ctx context.Context, hk, key string) error
- func (r *Redis) HashExists(ctx context.Context, hk, key string) (bool, error)
- func (r *Redis) HashGet(ctx context.Context, hk, key string) (string, error)
- func (r *Redis) HashMGet(ctx context.Context, hk string, key ...string) (map[string]interface{}, error)
- func (r *Redis) HashSet(ctx context.Context, hk, key string, val string) (bool, error)
- func (r *Redis) HashSetAll(ctx context.Context, hk string, val map[string]interface{}) (bool, error)
- func (r *Redis) Increase(ctx context.Context, key string) (int64, error)
- func (r *Redis) Name() string
- func (r *Redis) Set(ctx context.Context, key string, val interface{}, expire int) error
Constants ¶
View Source
const (
Proto = "redis"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis cache implement
func (*Redis) HashExists ¶ added in v0.1.28
func (*Redis) HashSetAll ¶ added in v0.1.28
Click to show internal directories.
Click to hide internal directories.