readcaching

package
v0.0.0-...-3b62dd1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDownloader

func NewDownloader[TReference object.BasicReference, TLeaseFast any](slow object.Downloader[TReference], fast object.Store[object.FlatReference, TLeaseFast]) object.Downloader[TReference]

NewDownloader creates a decorator for object.Downloader that adds read caching.

Read requests first go to a fast backend. If that backend returns NOT_FOUND, the data is read from the slow backend and written into the fast backend prior to returning.

Writes always go to the fast backend.

Types

This section is empty.

Jump to

Keyboard shortcuts

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