freecache

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FreeCache

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

func NewFreeCache

func NewFreeCache(conf cache.Conf) (*FreeCache, error)

func (*FreeCache) Del

func (r *FreeCache) Del(ctx context.Context, key string) error

func (*FreeCache) Get

func (r *FreeCache) Get(ctx context.Context, key string) (string, error)

func (*FreeCache) GetDel

func (r *FreeCache) GetDel(ctx context.Context, key string) (string, error)

func (*FreeCache) PTTL

func (r *FreeCache) PTTL(ctx context.Context, key string) (time.Duration, error)

func (*FreeCache) Set

func (r *FreeCache) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error

Jump to

Keyboard shortcuts

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