dirivcache

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirIVCache

type DirIVCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

DirIVCache stores up to "maxEntries" directory IVs.

func (*DirIVCache) Clear

func (c *DirIVCache) Clear()

Clear ... clear the cache. Called from fusefrontend when directories are renamed or deleted.

func (*DirIVCache) Lookup

func (c *DirIVCache) Lookup(dir string) ([]byte, string)

Lookup - fetch entry for "dir" from the cache

func (*DirIVCache) Store

func (c *DirIVCache) Store(dir string, iv []byte, cDir string)

Store - write entry for "dir" into the cache

Jump to

Keyboard shortcuts

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