redis_store

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store satisfies the jeff.Storage interface

func New

func New(p *redis.Pool) *Store

New initializes a new redis Storage for jeff

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, key []byte) error

Delete satisfies the jeff.Store.Delete method

func (*Store) Fetch

func (s *Store) Fetch(ctx context.Context, key []byte) ([]byte, error)

Fetch satisfies the jeff.Store.Fetch method

func (*Store) Store

func (s *Store) Store(ctx context.Context, key, value []byte, exp time.Time) error

Store satisfies the jeff.Store.Store method

Jump to

Keyboard shortcuts

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