Registry / web-framework / gin-contrib-cache

gin-contrib-cache

JSON →
library1.4.4gogounverified

Package cache provides middleware and utilities for HTTP response caching in Gin web applications.

go get github.com/gin-contrib/cache
INSTALL
IMPORT
SIG · GIN-CONTRIB-CACHE
G
gin-contrib-cache
web-frameworkgov1.4.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cache
github.com/gin-contrib/cache

Basic Gin server with in-memory response caching.

package main import ( "github.com/gin-gonic/gin" "github.com/gin-contrib/cache" "github.com/gin-contrib/cache/persistence" ) func main() { r := gin.Default() store := persistence.NewInMemoryStore(60) r.GET("/", cache.CachePage(store, 60, func(c *gin.Context) { c.String(200, "Hello, World!") })) r.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gin-contrib-cache — go get gin-contrib-cache · libregistry