Documentation
¶
Index ¶
- type Collections
- type Redis
- func (r Redis) Del(key string)
- func (r Redis) Get(key string, value interface{}) error
- func (r Redis) GetRedisClient() *redis.Client
- func (r Redis) GetRedisLogger() logger.Logger
- func (r Redis) Scan(prefix string) ([]string, error)
- func (r Redis) Set(key string, value interface{}, expired time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collections ¶
type Collections interface { Set(key string, value interface{}, expired time.Duration) error Get(key string, value interface{}) error Del(key string) Scan(prefix string) ([]string, error) }
Collections is redis's collection of function
func GetClient ¶
func GetClient() Collections
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func InitConnection ¶
func (Redis) GetRedisClient ¶
func (r Redis) GetRedisClient() *redis.Client
func (Redis) GetRedisLogger ¶
Click to show internal directories.
Click to hide internal directories.