mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
redis sessiondb: support more than one driver - builtin redigo(default) and radix - rel to: #1328
Former-commit-id: 1eee58f2c49f64899fffc3ad61bcf074f8949cc1
This commit is contained in:
@@ -22,7 +22,15 @@ func main() {
|
||||
Database: "",
|
||||
Prefix: "",
|
||||
Delim: "-",
|
||||
}) // optionally configure the bridge between your redis server.
|
||||
Driver: redis.Redigo(), // redis.Radix() can be used instead.
|
||||
})
|
||||
|
||||
// optionally configure the underline driver:
|
||||
// driver := redis.Redigo()
|
||||
// driver.MaxIdle = ...
|
||||
// driver.IdleTimeout = ...
|
||||
// driver.Wait = ...
|
||||
// redis.Config {Driver: driver}
|
||||
|
||||
// close connection when control+C/cmd+C
|
||||
iris.RegisterOnInterrupt(func() {
|
||||
|
||||
Reference in New Issue
Block a user