Documentation ¶
Index ¶
- type Redis
- func (r *Redis) Close() error
- func (r *Redis) Del(key string) (int64, error)
- func (r *Redis) Get(key string) (string, error)
- func (r *Redis) HDel(key string, fields ...string) (int64, error)
- func (r *Redis) HExists(key string, field string) bool
- func (r *Redis) HGet(key string, field string, result interface{}) error
- func (r *Redis) HGetAll(key string) (map[string]string, error)
- func (r *Redis) HGetString(key string, field string) (string, error)
- func (r *Redis) HSet(key string, value interface{}) (int64, error)
- func (r *Redis) Has(key string) (int64, error)
- func (r *Redis) Keys(pattern string) ([]string, error)
- func (r *Redis) LLen(key string) (int64, error)
- func (r *Redis) LPos(key, element string) (int64, error)
- func (r *Redis) LRange(key string) ([]string, error)
- func (r *Redis) LRangeWithStartAndMAx(key string, start int64, max int64) ([]string, error)
- func (r *Redis) ListPopCount(key string, count int) ([]string, error)
- func (r *Redis) ListRange(key string, start, stop int64) ([]string, error)
- func (r *Redis) RPush(key string, value string) (int64, error)
- func (r *Redis) RPushArray(key string, value ...interface{}) (int64, error)
- func (r *Redis) Set(key string, value interface{}, expiration ...int) (string, error)
- func (r *Redis) SetContext(ctx2 context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) LRangeWithStartAndMAx ¶
func (*Redis) RPushArray ¶
func (*Redis) SetContext ¶
Click to show internal directories.
Click to hide internal directories.