redis

package
v8.5.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: BSD-3-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

Database the redis back-end session database for the sessions.

func New

func New(cfg ...service.Config) *Database

New returns a new redis database.

func (*Database) Async

func (db *Database) Async(useGoRoutines bool) *Database

Async is DEPRECATED if it was true then it could use different to update the back-end storage, now it does nothing.

func (*Database) Close

func (db *Database) Close() error

Close shutdowns the redis connection.

func (*Database) Config

func (db *Database) Config() *service.Config

Config returns the configuration for the redis server bridge, you can change them.

func (*Database) Load

func (db *Database) Load(sid string) (storeDB sessions.RemoteStore)

Load loads the values to the underline.

func (*Database) Sync

func (db *Database) Sync(p sessions.SyncPayload)

Sync syncs the database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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