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.
Click to show internal directories.
Click to hide internal directories.