timecache

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2015 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCache

func WithCache(d ds.Datastore, ttl time.Duration) ds.Datastore

WithCache wraps a given datastore as a timecache. Get + Has requests are considered expired after a TTL.

func WithTTL

func WithTTL(ttl time.Duration) ds.Datastore

Types

This section is empty.

Jump to

Keyboard shortcuts

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