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) HashGet(ctx context.Context, hk, key string) (string, error)
- func (r *Redis) HashSet(ctx context.Context, hk, key string, val string) (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
Click to show internal directories.
Click to hide internal directories.