storecache

package
Version: v0.0.0-...-7df5e1c Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: BSD-3-Clause 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL