cache

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketCache

type BucketCache struct {
	Buckets map[string][]*storage.BucketAttrs
	// contains filtered or unexported fields
}

func (*BucketCache) Get

func (c *BucketCache) Get(project string) []*storage.BucketAttrs

func (*BucketCache) Set

func (c *BucketCache) Set(project string, buckets []*storage.BucketAttrs)

type Cache

type Cache[T any] interface {
	Get(project string) T
	Set(project string, buckets T)
}

func NewBucketCache

func NewBucketCache() Cache[[]*storage.BucketAttrs]

func NewNoopCache

func NewNoopCache[T any]() Cache[T]

type NoopCache

type NoopCache[T any] struct{}

func (NoopCache[T]) Get

func (c NoopCache[T]) Get(_ string) T

func (NoopCache[T]) Set

func (c NoopCache[T]) Set(_ string, _ T)

Jump to

Keyboard shortcuts

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