Documentation ¶
Overview ¶
Package cachefs implements a wrapper that caches filesystem actions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache maintains in-memory cache of recently-read data to speed up filesystem operations.
type DirectoryCacher ¶
type DirectoryCacher interface {
Readdir(ctx context.Context, d fs.Directory, w EntryWrapper) (fs.Entries, error)
}
DirectoryCacher reads and potentially caches directory entries for a given directory.
type EntryWrapper ¶ added in v0.9.0
EntryWrapper allows an fs.Entry to be modified before inserting into the cache.
Click to show internal directories.
Click to hide internal directories.