Documentation
¶
Overview ¶
Automod component for caching arbitrary data (as JSON strings) with a fixed TTL and purging.
Includes an interface and implementations using redis and in-process memory.
This is used by the rules engine to cache things like account metadata, improving latency and reducing load on authoritative backend systems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStore ¶
type MemCacheStore ¶
func NewMemCacheStore ¶
func NewMemCacheStore(capacity int, ttl time.Duration) MemCacheStore
type RedisCacheStore ¶
func NewRedisCacheStore ¶
func NewRedisCacheStore(redisURL string, ttl time.Duration) (*RedisCacheStore, error)
Click to show internal directories.
Click to hide internal directories.