Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBranchCache ¶
NewBranchCache creates a sturdyc cache client for branch lists with early refreshes enabled.
func NewOrganizationCache ¶
func NewOrganizationCache() *sturdyc.Client[[]models.Organization]
newOrganizationCache creates a sturdyc cache client for organization lists with early refreshes enabled.
func NewRepositoryCache ¶
func NewRepositoryCache() *sturdyc.Client[[]models.Repository]
newRepositoryCache creates a sturdyc cache client for repository lists with early refreshes enabled. Maximum number of entries in the cache. Exceeding this number triggers eviction.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager provides centralized cache management for all cache instances.
func NewManager ¶
func NewManager( repositoryCache *sturdyc.Client[[]models.Repository], organizationCache *sturdyc.Client[[]models.Organization], branchCache *sturdyc.Client[[]models.Branch], ) *Manager
NewManager creates a new cache manager with all cache instances.
func (*Manager) GetSupportedEndpoints ¶
GetSupportedEndpoints returns a list of supported cache endpoints.
func (*Manager) InvalidateCache ¶
InvalidateCache invalidates the specified cache type.
Click to show internal directories.
Click to hide internal directories.