redis

package
Version: 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 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeBytes

func DeserializeBytes(b []byte, m interface{}) error

DeserializeBytes converts the bytes to an object using gob decoder

func SerializeBytes

func SerializeBytes(m interface{}) ([]byte, error)

SerializeBytes serializa bytes using gob encoder and returns them

Types

type Database

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

Database the redis database for q sessions

func New

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

New returns a new redis database

func (*Database) Config

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

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

func (*Database) Load

func (d *Database) Load(sid string) map[string]interface{}

Load loads the values to the underline

func (*Database) Update

func (d *Database) Update(sid string, newValues map[string]interface{})

Update updates the real redis store

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL