nocache

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteNoCache

type ByteNoCache = NoCache[[]byte]

func NewByteNoCache

func NewByteNoCache() *ByteNoCache

type NoCache

type NoCache[T any] struct{}

NoCache is a no-operation cache implementation that does not store any data.

func NewNoCache

func NewNoCache[T any]() *NoCache[T]

func (*NoCache[T]) Close

func (n *NoCache[T]) Close() error

func (*NoCache[T]) Del

func (n *NoCache[T]) Del(ctx context.Context, key string) error

func (*NoCache[T]) DelAll

func (n *NoCache[T]) DelAll(ctx context.Context) error

func (*NoCache[T]) Exists

func (n *NoCache[T]) Exists(ctx context.Context, key string) (bool, error)

func (*NoCache[T]) Get

func (n *NoCache[T]) Get(ctx context.Context, key string) (T, bool, error)

func (*NoCache[T]) MultiDel

func (n *NoCache[T]) MultiDel(ctx context.Context, keys []string) error

func (*NoCache[T]) MultiGet

func (n *NoCache[T]) MultiGet(ctx context.Context, keys []string) (map[string]T, error)

func (*NoCache[T]) MultiSet

func (n *NoCache[T]) MultiSet(ctx context.Context, valMap map[string]T) error

func (*NoCache[T]) MultiSetWithTTL

func (n *NoCache[T]) MultiSetWithTTL(ctx context.Context, valMap map[string]T, expiration time.Duration) error

func (*NoCache[T]) Set

func (n *NoCache[T]) Set(ctx context.Context, key string, val T) error

func (*NoCache[T]) SetWithTTL

func (n *NoCache[T]) SetWithTTL(ctx context.Context, key string, val T, expiration time.Duration) error

Jump to

Keyboard shortcuts

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