Registry / web-framework / go-macaron-cache

go-macaron-cache

JSON →
library0.0.0-20200329073519-53bb48172687gogounverified

A middleware for the Macaron web framework that provides cache management.

go get github.com/go-macaron/cache
INSTALL
IMPORT
SIG · GO-MACARON-CACHE
G
go-macaron-cache
web-frameworkgov0.0.0-20200329073519-53bb48172687
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/go-macaron/cache

Sets up caching middleware in a Macaron web application.

package main import ( "gopkg.in/macaron.v1" "github.com/go-macaron/cache" ) func main() { m := macaron.Classic() m.Use(cache.Cacher()) m.Get("/", func(c cache.Cache) string { c.Put("key", "value", 60) return "cached" }) m.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200329073519-53bb48172687latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
go-macaron-cache — go get go-macaron-cache · libregistry