NewRedisConfig create new store with config and use redis store must set serverIp and storeKeyPre
(serverIp string, maxlifetime int64, storeKeyPre string, maxIdle int, maxActive int)
| 83 | // NewRedisConfig create new store with config and use redis store |
| 84 | // must set serverIp and storeKeyPre |
| 85 | func NewRedisConfig(serverIp string, maxlifetime int64, storeKeyPre string, maxIdle int, maxActive int) *StoreConfig { |
| 86 | return NewStoreConfig(SessionMode_Redis, maxlifetime, serverIp, storeKeyPre, maxIdle, maxActive) |
| 87 | } |
| 88 | |
| 89 | // NewStoreConfig create new store config |
| 90 | func NewStoreConfig(storeName string, maxlifetime int64, serverIp string, storeKeyPre string, maxIdle int, maxActive int) *StoreConfig { |
no test coverage detected