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

Function NewStoreConfig

session/session.go:90–99  ·  view source on GitHub ↗

NewStoreConfig create new store config

(storeName string, maxlifetime int64, serverIp string, storeKeyPre string, maxIdle int, maxActive int)

Source from the content-addressed store, hash-verified

88
89// NewStoreConfig create new store config
90func 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
102func NewDefaultSessionManager(appLog logger.AppLog, config *StoreConfig) (*SessionManager, error) {

Callers 2

NewDefaultRuntimeConfigFunction · 0.85
NewRedisConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected