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) 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
Click to show internal directories.
Click to hide internal directories.