package
5.3.0
Repository: https://github.com/micro/go-micro.git
Documentation: pkg.go.dev

# Functions

Expiration sets the duration for items stored in the cache to expire.
Items initializes the cache with preconfigured items.
NewCache returns a new cache.
NewOptions returns a new options struct.
WithAddress sets the cache service address or connection information.
WithContext sets the cache context, for any extra configuration.
WithLogger sets underline logger.

# Variables

DefaultCache is the default cache.
DefaultExpiration is the default duration for items stored in the cache to expire.
ErrItemExpired is returned in Cache.Get when the item found in the cache has expired.
ErrKeyNotFound is returned in Cache.Get and Cache.Delete when the provided key could not be found in cache.

# Structs

Item represents an item stored in the cache.
Options represents the options for the cache.

# Interfaces

Cache is the interface that wraps the cache.

# Type aliases

Option manipulates the Options passed.