cache

package
v0.0.0-...-44a2255 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cacheSize int64, itemSize int64) (*ristretto.Cache, error)

Init initializes the cache and returns the cache. The cache size sets the cache capacity in MiB. The item size sets the maximum size per item in MiB.

func Insert

func Insert(hash string, path string)

func Retrieve

func Retrieve(hash string) (io.ReadSeeker, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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