1
0
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:
Gerasimos Maropoulos
2018-04-25 05:29:19 +03:00
parent cfe484f769
commit b22151d4b7
16 changed files with 507 additions and 24 deletions

View File

@@ -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