cache

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

cache is an implementation of

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
}

func New

func New(keyFunc KeyFunc) *Cache

New returns a new Cache with the given KeyFunc.

func (*Cache) Cache

func (c *Cache) Cache(rev store.Revision)

func (*Cache) Delete

func (c *Cache) Delete(rev store.Revision)

func (*Cache) SafeCopy

func (c *Cache) SafeCopy() store.RevisionList

type KeyFunc

type KeyFunc func(store.Revision) string

type RevisionCacher

type RevisionCacher interface {
	SafeCopy() store.RevisionList
	Cache(rev store.Revision)
	Delete(rev store.Revision)
}

Jump to

Keyboard shortcuts

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