Back to godoc.org

Package cache

v1.10.10
Latest Go to latest

The latest major version is .

Published: 2 days ago | License: Apache-2.0 | Module: berty.tech/go-orbit-db

Overview

cache is a package defining the interface of cache factories

Index

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

type Options struct {
	Logger *zap.Logger
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier