redicache

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 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

This section is empty.

Functions

func NewStore

func NewStore() session.Store

NewStore ...

func NewStoreOptions

func NewStoreOptions(o *StoreOptions) session.Store

NewStoreOptions ...

Types

type StoreOptions

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

StoreOptions ...

Jump to

Keyboard shortcuts

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