package
0.74.0
Repository: https://github.com/beatlabs/patron.git
Documentation: pkg.go.dev

# Packages

Package lru implements a LRU based cache.
Package redis contains the concrete implementation of a cache that supports TTL.

# Functions

No description provided by the author
ObserveHit increments the cache hit counter.
ObserveMiss increments the cache miss counter.
SetupMetricsOnce initializes the cache counter.
UseCaseAttribute returns an attribute.KeyValue with the use case.

# Interfaces

Cache interface that defines the methods required.
TTLCache interface adds support for expiring key value pairs.