Documentation ¶
Overview ¶
Package fscache represents a file data cache based on an FsInfo
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FsCache ¶
type FsCache struct {
// contains filtered or unexported fields
}
FsCache provides cached file data for any *fs.FsFile
func New ¶
func New() *FsCache
New returns a fresh FsCache, ready to be populated via Register, or via Done (listening to a channel where FsPath'es are supplied), and subsequently queried via Lookup or LookupData.
func (*FsCache) Done ¶
Done launches a inp listener and returns a done channel
Note: while listening, the FsCache is Locked, and any error upon registration is silently ignored
func (*FsCache) LookupData ¶
LookupData returns the data assigned to the FsData of key (or an empty string)
Click to show internal directories.
Click to hide internal directories.