Documentation ¶
Overview ¶
Package filecache provides a LRU cache of open os.File objects, closing old files as new ones are opened.
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
}
func (*Cache) Open ¶
func (c *Cache) Open(filename string) *CachedFile
type CachedFile ¶
type CachedFile struct {
// contains filtered or unexported fields
}
func (*CachedFile) Close ¶
func (cf *CachedFile) Close() error
func (*CachedFile) Sync ¶
func (cf *CachedFile) Sync() error
Click to show internal directories.
Click to hide internal directories.