cache

package
v0.0.0-...-fcb7247 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2016 License: GPL-3.0 Imports: 3 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
}

func New

func New(size int) (*Cache, error)

func (*Cache) Add

func (cache *Cache) Add(key string, value *CacheEntry) bool

func (*Cache) Get

func (cache *Cache) Get(key string) (*CacheEntry, bool)

func (*Cache) Purge

func (cache *Cache) Purge()

func (*Cache) Remove

func (cache *Cache) Remove(key string) bool

type CacheEntry

type CacheEntry struct {
	Repo    *libgit2.Repository
	Branch  *libgit2.Branch
	Commit  *libgit2.Commit
	Tree    *libgit2.Tree
	OnClean Cleaner
}

type Cleaner

type Cleaner func()

Jump to

Keyboard shortcuts

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