Refactored code and added logging
This commit is contained in:
parent
8830920900
commit
221ab214cc
11 changed files with 51 additions and 44 deletions
|
|
@ -23,11 +23,11 @@ func GetClient() *CacheClient {
|
|||
|
||||
func (client *CacheClient) Init() {
|
||||
client.storage = redis.NewClient(&redis.Options{
|
||||
Addr: HOST_NAME,
|
||||
Password: PASSWORD,
|
||||
Addr: HostName,
|
||||
Password: Password,
|
||||
DB: 0,
|
||||
})
|
||||
client.Expiration = CACHE_EXPIRATION
|
||||
client.Expiration = CacheExpiration
|
||||
}
|
||||
|
||||
func (client *CacheClient) Set(key string, value string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue