halfcache

package module
v0.0.0-...-ae253e1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 6 Imported by: 0

README

halfcache

Go Reference

halfcache is a cache to eliminate the latency spike on cache expiration.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	MultiGet(keys ...string) (map[string][]byte, error)
}

func NewHalfCache

func NewHalfCache(size int, updateTTL, finalTTL time.Duration, directMultiGet func(keys ...string) (map[string][]byte, error)) Cache

Jump to

Keyboard shortcuts

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