Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( wrapped aurestclientapi.Client, useCacheCondition aurestclientapi.CacheConditionCallback, storeResponseInCacheCondition aurestclientapi.CacheResponseConditionCallback, retentionTime time.Duration, cacheSize int, ) aurestclientapi.Client
Types ¶
type CacheEntry ¶
type CacheEntry struct {
Recorded time.Time
Response *aurestclientapi.ParsedResponse
}
type CachingImpl ¶
type CachingImpl struct {
Wrapped aurestclientapi.Client
UseCacheCondition aurestclientapi.CacheConditionCallback
StoreResponseInCacheCondition aurestclientapi.CacheResponseConditionCallback
RetentionTime time.Duration
Cache *tinylru.LRU
}
func (*CachingImpl) Perform ¶
func (c *CachingImpl) Perform(ctx context.Context, method string, requestUrl string, requestBody interface{}, response *aurestclientapi.ParsedResponse) error
Click to show internal directories.
Click to hide internal directories.