memory

package
v1.200.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(size int, ttl int, dataType string) stored_requests.CacheJSON

NewCache returns an in-memory Cache which evicts items if:

1. They haven't been used within the TTL. 2. The cache is too large. This will cause the least recently used items to be evicted.

For no TTL, use ttlSeconds <= 0

Types

This section is empty.

Jump to

Keyboard shortcuts

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