cache

package
v0.0.0-...-204aec8 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: GPL-3.0 Imports: 3 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 {
	Cache map[string]*CachedPage
	// contains filtered or unexported fields
}

func NewCache

func NewCache() *Cache

func (*Cache) Add

func (c *Cache) Add(title string, p *core.Page)

func (*Cache) Delete

func (c *Cache) Delete(title string)

func (*Cache) Get

func (c *Cache) Get(title string) (p *core.Page)

type CachedPage

type CachedPage struct {
	Page      *core.Page
	CacheTime time.Time
}

Jump to

Keyboard shortcuts

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