Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func DelFromRedis(ctx context.Context, key string) error
 - func GetFromRedis(ctx context.Context, key string, object interface{}) error
 - func GetIntArrayFromRedis(ctx context.Context, key string) ([]int64, error)
 - func GetIntFromRedis(ctx context.Context, key string) (int64, error)
 - func GetRedis() *redis.Client
 - func GetStringFromRedis(ctx context.Context, key string) (string, error)
 - func HgetIntFromRedis(ctx context.Context, key string, value string) (int64, error)
 - func HgetStringFromRedis(ctx context.Context, key string, value string) (string, error)
 - func Init(addr, password string, db int) (r *redis.Client, err error)
 - func SetToRedis(ctx context.Context, key string, object interface{}, expire time.Duration) error
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ErrRedisNotFound = errors.New("redis not found")
    Functions ¶
func GetFromRedis ¶ added in v1.2.2
func GetIntArrayFromRedis ¶ added in v1.2.2
func GetIntFromRedis ¶ added in v1.2.2
func GetStringFromRedis ¶ added in v1.2.2
func HgetIntFromRedis ¶ added in v1.2.2
func HgetStringFromRedis ¶ added in v1.2.2
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.