Documentation
¶
Index ¶
- func ResetGlobalCache()
- type CacheEntry
- type FileCache
- func (fc *FileCache) CacheMetadataOnly(filePath string) error
- func (fc *FileCache) Clear()
- func (fc *FileCache) Contains(filePath string) bool
- func (fc *FileCache) Get(filePath string) (string, error)
- func (fc *FileCache) GetLazy(filePath string) (string, error)
- func (fc *FileCache) GetTextFileStatus(filePath string, checkFunc func(string) (bool, error)) (bool, error)
- func (fc *FileCache) Preload(filePath string) error
- func (fc *FileCache) Stats() (items int, sizeBytes int64, hitRate float64)
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetGlobalCache ¶
func ResetGlobalCache()
Types ¶
type CacheEntry ¶
type FileCache ¶
type FileCache struct {
// contains filtered or unexported fields
}
func DefaultFileCache ¶
func DefaultFileCache() *FileCache
func GetGlobalFileCache ¶
func GetGlobalFileCache() *FileCache
func NewFileCache ¶
func (*FileCache) CacheMetadataOnly ¶
func (*FileCache) GetTextFileStatus ¶
Click to show internal directories.
Click to hide internal directories.