maleogomemcache

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *memcache.Client) locker.Locker

Types

type Locker

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

func (Locker) Delete

func (l Locker) Delete(_ context.Context, key string)

func (Locker) Exist

func (l Locker) Exist(_ context.Context, key string) bool

func (Locker) Get

func (l Locker) Get(_ context.Context, key string) ([]byte, error)

func (Locker) Separator

func (l Locker) Separator() string

func (Locker) Set

func (l Locker) Set(_ context.Context, key string, value []byte, ttl time.Duration) error

Jump to

Keyboard shortcuts

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