Versions in this module Expand all Collapse all v1 v1.0.6 Jun 14, 2022 v1.0.5 Jun 14, 2022 Changes in this version + type CacheMetrics struct + EvictionCount uint64 + HitCount uint64 + LoadErrorCount uint64 + LoadSuccessCount uint64 + MissCount uint64 + TotalLoadTime time.Duration + type CorrelationData struct + AESKey string + Data []string + func (c *CorrelationData) GetInteractions() []string + type Storage struct + func New(evictionTTL time.Duration) *Storage + func (s *Storage) AddInteraction(correlationID string, data []byte) error + func (s *Storage) AddInteractionWithId(id string, data []byte) error + func (s *Storage) GetCacheItem(token string) (*CorrelationData, error) + func (s *Storage) GetCacheMetrics() *CacheMetrics + func (s *Storage) GetInteractions(correlationID, secret string) ([]string, string, error) + func (s *Storage) GetInteractionsWithId(id string) ([]string, error) + func (s *Storage) RemoveID(correlationID, secret string) error + func (s *Storage) SetID(ID string) error + func (s *Storage) SetIDPublicKey(correlationID, secretKey string, publicKey string) error