cache

package
v0.0.0-...-5efccc1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig struct {
	CacheSize       int
	Dir             string
	FlushPeriodTime time.Duration
}

func NewConfig

func NewConfig() *CacheConfig

type Options

type Options func(*CacheConfig) error

func SetCacheSize

func SetCacheSize(size int) Options

func SetDirFile

func SetDirFile(file string) Options

Jump to

Keyboard shortcuts

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