leveldb

package
v0.0.0-...-9c1906e Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache - LevelDB cache.

func Open

func Open(path string, ttl time.Duration) (cache *Cache, err error)

Open - Opens LevelDB cache.

func (*Cache) Add

func (cache *Cache) Add(key string) (err error)

Add - Adds key to cache.

func (*Cache) Close

func (cache *Cache) Close() error

Close - Closes the LevelDB database.

func (*Cache) Has

func (cache *Cache) Has(key string) (_ bool, err error)

Has - Checks if cache has key.

Jump to

Keyboard shortcuts

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