storecache

package
v0.0.0-...-70e5bc8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Overview

Package storecache is a caching proxy between a client and all stores. References are stored as files in the local file system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg upspin.Config, cacheDir string, maxBytes int64, writethrough bool) (upspin.StoreServer, func(upspin.Location), error)

New creates a new store cache that implements upspin.StoreServer. For writeback caches, it also returns a function to flush Blocks that are waiting to be written back. This is important to allow the client to flush out Access file blocks before writing the DirEntry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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