Documentation
¶
Overview ¶
Package cache provides a file-based JSON cache with TTL for Jira issues and Confluence page lookups.
Index ¶
- type Cache
- func (c *Cache) Clear() error
- func (c *Cache) Enabled() bool
- func (c *Cache) Flush() error
- func (c *Cache) Get(namespace, key string, dest any) (bool, error)
- func (c *Cache) Invalidate(namespace, key string) error
- func (c *Cache) InvalidateNamespace(namespace string) error
- func (c *Cache) Path() string
- func (c *Cache) Set(namespace, key string, value any) error
- type Option
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) Invalidate ¶
func (*Cache) InvalidateNamespace ¶
type Option ¶
type Option func(*Cache)
func WithDeferredWrites ¶
WithDeferredWrites keeps new entries in memory until Flush. Reads can see pending entries, allowing planning to remain filesystem-side-effect-free.
func WithEnabled ¶
Click to show internal directories.
Click to hide internal directories.