stores

package
v0.0.0-...-1ad4281 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilKey = errors.New("stores.redis: Error 0 length key")

ErrNilKey returned when key has 0 or less length

Functions

This section is empty.

Types

type Redis

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

Redis struct

func NewRedis

func NewRedis(redis *redis.Client) *Redis

NewRedis Storage

func (*Redis) Delete

func (r *Redis) Delete(key string) error

Delete key

func (*Redis) Get

func (r *Redis) Get(key string) (*session.Session, error)

Get []bytes

func (*Redis) Set

func (r *Redis) Set(s *session.Session) error

Set []bytes

Jump to

Keyboard shortcuts

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