cache

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cache internal/cache/location.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationCache

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

LocationCache cache for bucket locations

func NewLocationCache

func NewLocationCache(ttl time.Duration) *LocationCache

NewLocationCache creates a new LocationCache with the specified TTL.

func (*LocationCache) Clear

func (c *LocationCache) Clear()

Clear all cache entries

func (*LocationCache) Delete

func (c *LocationCache) Delete(bucketName string)

Delete bucket location

func (*LocationCache) Get

func (c *LocationCache) Get(bucketName string) (string, bool)

Get bucket location

func (*LocationCache) Set

func (c *LocationCache) Set(bucketName, location string)

Set bucket location

Jump to

Keyboard shortcuts

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