cache

package
v0.0.0-...-60a9aaa Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BannerCache

type BannerCache struct {
	Ctx context.Context

	Config *config.Config
	// contains filtered or unexported fields
}

func NewBannerCache

func NewBannerCache(ctx context.Context, evictionWorkerDuration time.Duration, conf *config.Config) BannerCache

func (*BannerCache) Get

func (b *BannerCache) Get(key string) (*models.Content, bool)

func (*BannerCache) Set

func (b *BannerCache) Set(key string, bannerContent models.Content)

type Item

type Item struct {
	BannerContent models.Content
	Eviction      time.Time
}

Jump to

Keyboard shortcuts

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