redishoard

package module
v0.0.0-...-614048b Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: MIT Imports: 6 Imported by: 0

README

SQRL Redis Hoard

Implementation of a ssp.Hoard that uses redis as a backing store. See https://github.com/sqrldev/server-go-ssp

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hoard

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

Hoard implements an ssp.Hoard using redis as a backing store

func NewHoard

func NewHoard(client redis.UniversalClient) *Hoard

NewHoard creates a redis backed Hoard

func (*Hoard) Get

func (h *Hoard) Get(nut ssp.Nut) (*ssp.HoardCache, error)

Get implements ssp.Hoard

func (*Hoard) GetAndDelete

func (h *Hoard) GetAndDelete(nut ssp.Nut) (*ssp.HoardCache, error)

GetAndDelete implements ssp.Hoard

func (*Hoard) Save

func (h *Hoard) Save(nut ssp.Nut, value *ssp.HoardCache, expiration time.Duration) error

Save implements ssp.Hoard

Jump to

Keyboard shortcuts

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