Documentation ¶
Index ¶
- Variables
- func CreateOrSetAddOne(key string, timeout time.Duration) (value int, err error)
- func Get(key string) (value string, err error)
- func GetInt(key string) (value int, err error)
- func Init(addr string, password string, db int) error
- func Set(key string, value interface{}, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FoodIDToNameKey = "food_id_%v_to_name" //food_id DiseaseIDToNameKey = "disease_id_%v_to_name" //food_id UserLookFreqKey = "user_look_%v_freq" //user_id UserCommentFreqKey = "user_comment_%v_freq" //user_id UserLoginFreqKey = "user_look_%v_freq" //user_id )
View Source
var (
Client *redis.Client
)
Functions ¶
func CreateOrSetAddOne ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.