Documentation
¶
Index ¶
- func HashBytes(data []byte) string
- func HashFile(path string) (string, error)
- type Cache
- func (c *Cache) Clear() error
- func (c *Cache) Get(key string) ([]byte, bool)
- func (c *Cache) GetStats() (*Stats, error)
- func (c *Cache) GetWithHash(key, hash string) ([]byte, bool)
- func (c *Cache) Invalidate(key string) error
- func (c *Cache) Set(key string, data []byte) error
- func (c *Cache) SetWithHash(key, hash string, data []byte) error
- type Entry
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides file-based caching for analysis results.
func (*Cache) GetWithHash ¶
GetWithHash retrieves a cached entry only if the hash matches.
func (*Cache) Invalidate ¶
Invalidate removes a cache entry.
Click to show internal directories.
Click to hide internal directories.