sessiondb/

directory
v6.0.0-...-03bcada Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2017 License: MIT, MIT

README

Session databases

Find more databases at github.com/kataras/go-sessions/sessiondb.

This folder contains only the redis database because the rest (two so far, 'file' and 'leveldb') were created by the Community. So go there and find more about them. Database is just an interface so you're able to UseDatabase(anyCompatibleDatabase). A Database should implement two functions, Load and Update.

Database interface

type Database interface {
	Load(string) map[string]interface{}
	Update(string, map[string]interface{})
}
import (
  "...myDatabase"
)
s := New(...)
s.UseDatabase(myDatabase) // <---

app := iris.New()
app.Adapt(s)

app.Listen(":8080")

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL