Documentation
¶
Overview ¶
Package statcache is the per-machine sidecar that remembers what each file looked like when it was last read, so a run can detect changes that mtime and size alone miss and can be dropped at any time without losing correctness.
Index ¶
Constants ¶
View Source
const TTL = 30 * 24 * time.Hour
TTL is how long an entry lasts after it was last stored or matched.
Variables ¶
View Source
var ErrLocked = errors.New("another process has the cache open")
ErrLocked is returned by Open when another process has the cache open.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a badger-backed backup.StatCache. An entry neither stored nor matched within TTL expires.
func Open ¶
Open opens or creates the cache in dir. It fails with ErrLocked while another process has it open.
Click to show internal directories.
Click to hide internal directories.