cache

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

cache is a package defining the interface of cache factories

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Load Loads a cache for a given database address and a root directory
	Load(directory string, dbAddress address.Address) (datastore.Datastore, error)

	// Close Closes a cache and all its associated data stores
	Close() error

	// Destroy Removes all the cached data for a database
	Destroy(directory string, dbAddress address.Address) error
}

Interface Cache interface

type Options added in v1.4.0

type Options struct {
	Logger *zap.Logger
}

Directories

Path Synopsis
cacheleveldown is a package returning level db data stores for OrbitDB
cacheleveldown is a package returning level db data stores for OrbitDB

Jump to

Keyboard shortcuts

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