favcache

package
v1.0.0-43 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2015 License: BSD-3-Clause, BSD-3-Clause Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Cache is a simple cache of kbfs folder favorites. It doesn't try to do anything fancy.

func New

func New() *Cache

New creates a Cache.

func (*Cache) Add

func (c *Cache) Add(f keybase1.Folder)

Add inserts a folder into the cache.

func (*Cache) Delete

func (c *Cache) Delete(f keybase1.Folder)

Delete removes a folder from the cache.

func (*Cache) List

func (c *Cache) List() []keybase1.Folder

List returns all the folders in the cache.

Jump to

Keyboard shortcuts

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