dircache

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: 23 Imported by: 1

Documentation

Overview

Package dircacheserver is a caching proxy between a client and all directories. Cached entries are appended to a log to survive restarts.

Index

Constants

View Source
const (
	// LRUMax is the maximum number of entries in the LRU.
	LRUMax = 10000

	// SequenceLRUMax is the maximum number of paths that
	// whose sequence we will remember. This is used to
	// avoid reapplying Watch Events that reflect actions
	// we have already applied or overridden.
	SequenceLRUMax = 2000
)

Variables

This section is empty.

Functions

func New

func New(uncachedCfg, cachedCfg upspin.Config, cacheDir string, maxLogBytes int64, flushBlock func(upspin.Location)) (upspin.DirServer, error)

New creates a new DirServer cache reading in the log and writing out a new compacted log.

Types

This section is empty.

Jump to

Keyboard shortcuts

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