redicache

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

README

SessionStore implementation with redis cache

Usage

import "github.com/go-osin/session/redicache"
import "github.com/go-osin/session"

	var smgr session.Manager
	var store session.Store

	store = redicache.NewRedicacheStoreOptions(&redicache.RedicacheStoreOptions{
		Servers: []string{":6379"}
	})
	smgr = session.NewCookieManagerOptions(store, &session.CookieMngrOptions{
		SessIDCookieName: SessionIDCookieName,
		AllowHTTP:        true,
	})


Documentation

Index

Constants

This section is empty.

Variables

View Source
var JSON = codec.JSON

JSON ...

Functions

func NewRedicacheStore

func NewRedicacheStore() session.Store

func NewRedicacheStoreOptions

func NewRedicacheStoreOptions(o *RedicacheStoreOptions) session.Store

Types

type RedicacheStoreOptions

type RedicacheStoreOptions struct {
	Addrs     []string
	DB        int
	Password  string
	KeyPrefix string
	Retries   int
	Codec     *codec.Codec
}

Jump to

Keyboard shortcuts

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