Versions in this module Expand all Collapse all v3 v3.3.1 Dec 26, 2020 Changes in this version + type Database struct + func New(clientOpts *options.ClientOptions, database string) (*Database, error) + func (db *Database) Acquire(sid string, expires time.Duration) sessions.LifeTime + func (db *Database) Clear(sid string) + func (db *Database) Close() error + func (db *Database) Delete(sid string, key string) (deleted bool) + func (db *Database) Get(sid string, key string) (value interface{}) + func (db *Database) Len(sid string) (n int) + func (db *Database) OnUpdateExpiration(sid string, newExpires time.Duration) error + func (db *Database) Release(sid string) + func (db *Database) Set(sid string, lifetime sessions.LifeTime, key string, value interface{}, ...) + func (db *Database) Visit(sid string, cb func(key string, value interface{}))