redis

package
v8.5.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 12, 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 if true passed then it will use different go routines to update the redis storage.

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