Documentation
¶
Overview ¶
Package blobcache keeps copies of stored objects on local disk, keyed by ref and verified on every read.
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 is one store's blob directory. It is safe for concurrent use by several processes: entries are written next to their final name and renamed into place.
func Open ¶
Open returns the cache of one store under dir. limit caps the cache in bytes when Sweep runs; 0 leaves it unbounded.
func (*Cache) Get ¶
Get returns the cached object for ref after checking that it still hashes to it. A corrupt entry is removed.
Click to show internal directories.
Click to hide internal directories.