MCPcopy Create free account
hub / github.com/devfeel/dotweb / getRedisClient

Method getRedisClient

session/store_redis.go:163–170  ·  view source on GitHub ↗

getRedisClient get alive redis client

()

Source from the content-addressed store, hash-verified

161
162// getRedisClient get alive redis client
163func (store *RedisStore) getRedisClient() *redisutil.RedisClient {
164 if store.hystrix.IsHystrix() {
165 if store.backupServerUrl != "" {
166 return store.getBackupRedis()
167 }
168 }
169 return store.getDefaultRedis()
170}
171
172func (store *RedisStore) getDefaultRedis() *redisutil.RedisClient {
173 return redisutil.GetRedisClient(store.serverIp, store.maxIdle, store.maxActive)

Callers 5

NewRedisStoreFunction · 0.95
SessionReadMethod · 0.95
SessionExistMethod · 0.95
sessionReExpireMethod · 0.95
SessionUpdateMethod · 0.95

Calls 3

getBackupRedisMethod · 0.95
getDefaultRedisMethod · 0.95
IsHystrixMethod · 0.65

Tested by

no test coverage detected