mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 10:57:05 +00:00
Update to version 10.6.1 | Re-implement the BoltDB as built'n session database and more. Please read the HISTORY file for further details
Former-commit-id: fa68a914bec5fe4f595bdeaea84ecab6374ba643
This commit is contained in:
@@ -15,13 +15,13 @@ import (
|
||||
func main() {
|
||||
// replace with your running redis' server settings:
|
||||
db := redis.New(service.Config{
|
||||
Network: service.DefaultRedisNetwork,
|
||||
Addr: service.DefaultRedisAddr,
|
||||
Network: "tcp",
|
||||
Addr: "127.0.0.1:6379",
|
||||
Password: "",
|
||||
Database: "",
|
||||
MaxIdle: 0,
|
||||
MaxActive: 0,
|
||||
IdleTimeout: service.DefaultRedisIdleTimeout,
|
||||
IdleTimeout: time.Duration(5) * time.Minute,
|
||||
Prefix: ""}) // optionally configure the bridge between your redis server
|
||||
|
||||
// close connection when control+C/cmd+C
|
||||
|
||||
Reference in New Issue
Block a user