memcache_store

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: BSD-3-Clause Imports: 3 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(mc *memcache.Client) *Store

New initializes a new memcache 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