redis

package
v0.0.0-...-e22b688 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStore

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

func NewRedisStore

func NewRedisStore(conn *goRedis.Client, keyPairs ...[]byte) *RedisStore

func (*RedisStore) Delete

func (s *RedisStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error

func (*RedisStore) DeleteByID

func (s *RedisStore) DeleteByID(ids ...string) error

func (*RedisStore) Get

func (s *RedisStore) Get(r *http.Request, name string) (*sessions.Session, error)

func (*RedisStore) GetAll

func (s *RedisStore) GetAll() ([]*sessions.Session, error)

func (*RedisStore) New

func (s *RedisStore) New(r *http.Request, name string) (*sessions.Session, error)

func (*RedisStore) Options

func (c *RedisStore) Options(options *sessions.Options)

func (*RedisStore) Save

func (s *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error

func (*RedisStore) SetKeyPrefix

func (s *RedisStore) SetKeyPrefix(p string) *RedisStore

func (*RedisStore) SetMaxLength

func (s *RedisStore) SetMaxLength(length int) *RedisStore

func (*RedisStore) SetOptions

func (s *RedisStore) SetOptions(opts *sessions.Options) *RedisStore

func (*RedisStore) SetSerializer

func (s *RedisStore) SetSerializer(serializer sessions.Serializer) *RedisStore

Jump to

Keyboard shortcuts

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