Versions in this module Expand all Collapse all v0 v0.3.0 Jul 19, 2023 Changes in this version + type Cache interface + Cleanup func() + Contains func(fingerprint string, status string) (bool, error) + Set func(fingerprint string, status string) error + func NewCache(cfg config.CacheConfig) (Cache, error) + func NewDisabledCache() (Cache, error) + func NewMemoryCache(d time.Duration) Cache + func NewRedisCache(redisURL string, d time.Duration) (Cache, error) + type DisabledCache struct + func (c *DisabledCache) Cleanup() + func (c *DisabledCache) Contains(_ string, _ string) (bool, error) + func (c *DisabledCache) Set(_ string, _ string) error + type MemoryCache struct + func (c *MemoryCache) Cleanup() + func (c *MemoryCache) Contains(fingerprint string, status string) (bool, error) + func (c *MemoryCache) Set(fingerprint string, status string) error + type RedisCache struct + func (c *RedisCache) Cleanup() + func (c *RedisCache) Contains(fingerprint string, status string) (bool, error) + func (c *RedisCache) Set(fingerprint string, status string) error