cache

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init initializes the abstraction layer for the gallery cache.

func PruneCache

func PruneCache()

PruneCache removes entries not accessed (internal timestamp in mem) in the last x time in a thread-safe manner.

func PruneCacheFS

func PruneCacheFS()

PruneCacheFS removes entries not accessed (filesystem timestamp) in the last x time. Not thread-safe.

func Read

func Read(archivePath string, galleryUUID string) ([]string, int)

Read reads the cached gallery from disk. If it doesn't exist, it will be created and then read.

Types

type GalleryCache

type GalleryCache struct {
	Path  string
	Store map[string]cacheValue
}

Jump to

Keyboard shortcuts

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