Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultTTL is the default cache time-to-live (24 hours) DefaultTTL = 24 * time.Hour // CacheDir is the cache directory name CacheDir = ".cache/mail-app-cli" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache manages cached data files
func (*Cache) DeletePrefix ¶
DeletePrefix removes all cached items whose key starts with the given prefix. Use this to invalidate all query variants for a specific mailbox after a mutation.
Click to show internal directories.
Click to hide internal directories.