package
1.37.0
Repository: https://github.com/encoredev/encore.dev.git
Documentation: pkg.go.dev

# Functions

ExpireDailyAt returns an ExpiryFunc that expires keys daily at the given time of day in loc.
ExpireIn returns an ExpiryFunc that expires keys after a constant duration.
NewCluster declares a new cache cluster.
NewFloatKeyspace creates a keyspace that stores float64 values in the given cluster.
NewIntKeyspace creates a keyspace that stores int64 values in the given cluster.
NewListKeyspace creates a keyspace that stores ordered lists in the given cluster.
NewSetKeyspace creates a keyspace that stores unordered sets in the given cluster.
NewStringKeyspace creates a keyspace that stores string values in the given cluster.
NewStructKeyspace creates a keyspace that stores structs in the given cluster.

# Constants

AllKeysLFU keeps frequently used keys and removes least frequently used (LFU) keys.
AllKeysLRU keeps most recently used keys and removes least recently used (LRU) keys.
AllKeysRandom randomly removes keys as needed.
No description provided by the author
NoEviction does not evict any keys, and instead returns an error to the client when the max memory limit is reached.
No description provided by the author
VolatileLFU removes least frequently used keys with an expiration set.
VolatileLRU removes least recently used keys with an expiration set.
VolatileRandom randomly removes keys with an expiration set.
VolatileTTL removes keys with an expiration set and the shortest time to live (TTL).

# Variables

KeepTTL is a WriteOption indicating the key's TTL should be kept the same.
KeyExists is the error reported when a key already exists and the requested operation is specified to only apply to keys that do not already exist.
Miss is the error value reported when a key is missing from the cache.
NeverExpire is a WriteOption indicating the key should never expire.

# Structs

Cluster represents a Redis cache cluster.
ClusterConfig represents the configuration of cache clusters.
FloatKeyspace is a cache keyspace that stores float64 values.
IntKeyspace is a cache keyspace that stores int64 values.
KeyspaceConfig specifies the configuration options for a cache keyspace.
ListKeyspace represents a set of cache keys, each containing an ordered list of values of type V.
An OpError describes the operation that failed.
SetKeyspace represents a set of cache keys, each containing an unordered set of values of type V.
StringKeyspace represents a set of cache keys that hold string values.
StructKeyspace represents a set of cache keys that hold struct values.

# Interfaces

BasicType is a constraint for basic types that can be used as element types in Redis lists and sets.
An WriteOption customizes the behavior of a single cache write operation.

# Type aliases

An EvictionPolicy describes how the cache evicts keys to make room for new data when the maximum memory limit is reached.
ExpiryFunc is a function that reports when a key should expire given the current time.
No description provided by the author