persist

package module
v0.0.0-...-0623c94 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: GPL-2.0 Imports: 6 Imported by: 2

README

NDN persistent content store

While LRU in-memory cache is usually good enough for simple NDN application, persistent disk-based content store is required if an application has a huge dataset.

It uses Bolt, and implements ndn.Cache interface.

GoDoc

Documentation

Overview

Package persist implements persistent content store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cacher

func Cacher(file string) mux.Middleware

Cacher creates a new caching middleware instance that uses the given file as the persistent content store.

func New

func New(file string) (ndn.Cache, error)

New creates a persistent content store.

By design, reading from this store is significantly faster than writing new entry. This store will not delete any old entry. When the file is opened, invoking New again will block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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