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

# Functions

Handler will wrap the handler func with the route cache abstraction.
NewRouteCache creates a new cache implementation for an http route.

# Constants

HeaderCacheControl is the Header key for cache related values.
HeaderETagHeader is the constant representing the Etag http header.

# Variables

NowSeconds returns the current unix timestamp in seconds.

# Structs

Age defines the route cache life-time boundaries for cached objects.
RouteCache is the builder needed to build a cache for the corresponding route.