aerospikestore

package module
v0.0.0-...-b5c7e16 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: MIT Imports: 4 Imported by: 0

README

session-store-aerospike

Session store for Aerospike databases.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionStoreAerospike

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

SessionStoreAerospike is a store saving sessions in an Aerospike database.

func New

func New(database *aerospike.Database, set string, duration int) *SessionStoreAerospike

New creates a session store using an Aerospike database.

func (*SessionStoreAerospike) Get

func (store *SessionStoreAerospike) Get(sid string) (*session.Session, error)

Get loads the initial session values from the database.

func (*SessionStoreAerospike) Set

func (store *SessionStoreAerospike) Set(sid string, session *session.Session) error

Set updates the session values in the database.

Jump to

Keyboard shortcuts

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