redis

package
Version: v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: MIT 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.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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