SessionRemove delete session state in store
(sessionId string)
| 138 | |
| 139 | // SessionRemove delete session state in store |
| 140 | func (store *RedisStore) SessionRemove(sessionId string) error { |
| 141 | redisClient := redisutil.GetRedisClient(store.serverIp, store.maxIdle, store.maxActive) |
| 142 | key := store.getRedisKey(sessionId) |
| 143 | _, err := redisClient.Del(key) |
| 144 | if store.checkConnErrorAndNeedRetry(err) { |
| 145 | redisClient = store.getBackupRedis() |
| 146 | _, err = redisClient.Del(key) |
| 147 | } |
| 148 | return err |
| 149 | } |
| 150 | |
| 151 | // SessionGC clean expired session states |
| 152 | // in redis store,not use |
nothing calls this directly
no test coverage detected