Documentation ¶ Index ¶ type ExpiringReadWriter type FileCache func NewFileCache(ttlInHours int, path string) *FileCache func (c *FileCache) Expired() (bool, error) func (c *FileCache) Read(out any) error func (c *FileCache) Write(in any) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ExpiringReadWriter ¶ type ExpiringReadWriter interface { Read(any) error Write(any) error Expired() (bool, error) } type FileCache ¶ type FileCache struct { // contains filtered or unexported fields } func NewFileCache ¶ func NewFileCache(ttlInHours int, path string) *FileCache func (*FileCache) Expired ¶ func (c *FileCache) Expired() (bool, error) func (*FileCache) Read ¶ func (c *FileCache) Read(out any) error func (*FileCache) Write ¶ func (c *FileCache) Write(in any) error Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.