cache

package
v0.0.0-...-ee9263c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_CACHE_SIZE = 10000

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEntry

type CacheEntry struct {
	Url   string
	Album string
}

type ImageUrlCache

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

func GetImageUrlCache

func GetImageUrlCache() *ImageUrlCache

func (*ImageUrlCache) Get

func (c *ImageUrlCache) Get(key string) (CacheEntry, bool)

func (*ImageUrlCache) Set

func (c *ImageUrlCache) Set(key string, value CacheEntry)

type Map

type Map[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func (*Map[K, V]) Count

func (m *Map[K, V]) Count() uint64

func (*Map[K, V]) Load

func (m *Map[K, V]) Load(key K) (value V, ok bool)

func (*Map[K, V]) Store

func (m *Map[K, V]) Store(key K, value V)

Jump to

Keyboard shortcuts

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