Versions in this module Expand all Collapse all v1 v1.1.4 Oct 13, 2020 Changes in this version + const CACHE_MIDDLEWARE_KEY + var PageCachePrefix = "gincontrib.page.cache" + func Cache(store *persistence.CacheStore) gin.HandlerFunc + func CacheCustom(store persistence.CacheStore, expire time.Duration, handle gin.HandlerFunc, ...) gin.HandlerFunc + func CachePage(store persistence.CacheStore, expire time.Duration, handle gin.HandlerFunc) gin.HandlerFunc + func CachePageAtomic(store persistence.CacheStore, expire time.Duration, handle gin.HandlerFunc) gin.HandlerFunc + func CachePageAtomicDecorator(middleware Middleware, store persistence.CacheStore, expire time.Duration, ...) gin.HandlerFunc + func CachePageWithoutHeader(store persistence.CacheStore, expire time.Duration, handle gin.HandlerFunc) gin.HandlerFunc + func CachePageWithoutQuery(store persistence.CacheStore, expire time.Duration, handle gin.HandlerFunc) gin.HandlerFunc + func CreateKey(u string) string + func RegisterResponseCacheGob() + func RequestURIKey(c *gin.Context) string + func SiteCache(store persistence.CacheStore, expire time.Duration) gin.HandlerFunc + func WithoutParamKey(c *gin.Context) string + func WriteWithHeaders(c *gin.Context, cache responseCache) + func WriteWithoutHeaders(c *gin.Context, cache responseCache) + type KeyGenerator func(c *gin.Context) string + type Middleware func(store persistence.CacheStore, expire time.Duration, handle gin.HandlerFunc) gin.HandlerFunc + type WriterHook func(c *gin.Context, cache responseCache)