cache

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cache provides an exchange.Store decorator that caches single- and all-symbol rate lookups in front of a wrapped store.

Reads are keyed by a coarse time bucket that doubles as the freshness window, and a full set of rates is weighted more heavily than a single-symbol entry. Range and history reads, and all writes, pass straight through to the wrapped store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(backing exchange.Store) exchange.Store

New returns an exchange.Store that caches reads in front of backing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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