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

Function NewRedisConfig

session/session.go:85–87  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

83// NewRedisConfig create new store with config and use redis store
84// must set serverIp and storeKeyPre
85func 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
90func NewStoreConfig(storeName string, maxlifetime int64, serverIp string, storeKeyPre string, maxIdle int, maxActive int) *StoreConfig {

Callers 1

NewDefaultRedisConfigFunction · 0.85

Calls 1

NewStoreConfigFunction · 0.85

Tested by

no test coverage detected