package
0.27.274
Repository: https://github.com/effective-security/porto.git
Documentation: pkg.go.dev

# Functions

GetOrSet gets value from cache, or sets it using getter.
IsNotFoundError returns true, if error is NotFound.
NewMemoryProvider returns memory cache.
NewProxyProvider returns proxy provider.
NewRedisProvider returns Redis cache.

# Variables

DefaultTTL specifies default TTL.
ErrNotFound defines not found error.
KeepTTL specifies to keep value.
NowFunc allows to override default time.

# Structs

Config specifies configuration of the cache.
RedisConfig specifies configuration of the redis.

# Interfaces

Provider defines cache interface.
Subscription defines subscription interface.