cache

package module
v0.0.0-...-6deb74b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Has(ctx context.Context, key string) (bool, error)
	Delete(ctx context.Context, key string) error
	Keys(ctx context.Context) rx.Iter[rx.Pair[string, int64]]
}

type Cache

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

func New

func New(b Backend) *Cache

func (*Cache) Resolve

func (c *Cache) Resolve(ctx context.Context, key string, fn func() (int64, error)) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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