Documentation ¶
Index ¶
- type Caches
- type Handler
- type RedisCfg
- type Store
- func (r *Store) AddInSet(key, value string) (int, error)
- func (r *Store) Del(key string) (int64, error)
- func (r *Store) Get(key string) (string, error)
- func (r *Store) GetNElementOfSet(key string, n int) ([]string, error)
- func (r *Store) GetSetLength(key string) (int, error)
- func (r *Store) GetSetMembers(key string) ([]string, error)
- func (r *Store) HSet(key, field, value string) (string, error)
- func (r *Store) PushNElementToSet(values []interface{}) (int, error)
- func (r *Store) Set(key, value string, expire int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caches ¶
type Caches interface { Get(key string) (string, error) Del(key string) (int64, error) HSet(key, field, value string) (string, error) Set(key, value string, expire int) (string, error) AddInSet(key, value string) (int, error) GetSetMembers(key string) ([]string, error) GetSetLength(key string) (int, error) GetNElementOfSet(key string, n int) ([]string, error) PushNElementToSet(values []interface{}) (int, error) }
type Store ¶
type Store struct {
Pool Handler
}
Store object
func (*Store) GetNElementOfSet ¶
GetNElementOfSet to get the first N elements of set
func (*Store) GetSetLength ¶
GetSetLength will be used to get the set length
func (*Store) GetSetMembers ¶
GetSetMembers will be used to get the set memebers
func (*Store) PushNElementToSet ¶
PushNElementToSet will be used to push n elements to set
Click to show internal directories.
Click to hide internal directories.