Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCache ¶
func ValidateCache(rawData *model.InstanceAssociation)
ValidateCache validates the current cache is not expired
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Add ¶
func (c *Cache) Add(associationID string, associationRawData *model.InstanceAssociation) error
Add an item to the cache only if an item doesn't already exist for the given key, or if the existing item has expired. Returns an error otherwise.
Click to show internal directories.
Click to hide internal directories.