noop

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache[T any]() cache.Cache[T]

NewCache returns a no-op Cache.

Types

type Cache

type Cache[T any] struct{}

Cache is a no-op Cache.

func (*Cache[T]) Delete

func (*Cache[T]) Delete(context.Context, string) error

Delete is a no-op.

func (*Cache[T]) Get

func (*Cache[T]) Get(context.Context, string) (*T, error)

Get always returns ErrNotFound.

func (*Cache[T]) Ping

func (*Cache[T]) Ping(context.Context) error

Ping is a no-op.

func (*Cache[T]) Set

func (*Cache[T]) Set(context.Context, string, *T) error

Set is a no-op.

Jump to

Keyboard shortcuts

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