NewStoreConfig create new store config
(storeName string, maxlifetime int64, serverIp string, storeKeyPre string, maxIdle int, maxActive int)
| 88 | |
| 89 | // NewStoreConfig create new store config |
| 90 | func NewStoreConfig(storeName string, maxlifetime int64, serverIp string, storeKeyPre string, maxIdle int, maxActive int) *StoreConfig { |
| 91 | return &StoreConfig{ |
| 92 | StoreName: storeName, |
| 93 | Maxlifetime: maxlifetime, |
| 94 | ServerIP: serverIp, |
| 95 | StoreKeyPre: storeKeyPre, |
| 96 | MaxIdle: maxIdle, |
| 97 | MaxActive: maxActive, |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | // NewDefaultSessionManager create new session manager with default config info |
| 102 | func NewDefaultSessionManager(appLog logger.AppLog, config *StoreConfig) (*SessionManager, error) { |
no outgoing calls
no test coverage detected