cache

package
v0.0.0-...-342267f Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache holds maps of strings to Info structs. It isn't concurrency-safe, but we don't care about that right now.

func (*Cache) Get

func (c *Cache) Get(k string) libyear.Info

Get retrives an Info struct from the cache, if it exists.

func (*Cache) Set

func (c *Cache) Set(k string, v libyear.Info)

Set adds an Info struct to the cache.

Jump to

Keyboard shortcuts

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