Documentation ¶
Index ¶
Constants ¶
View Source
const (
CACHE_MIDDLEWARE_KEY = "gincontrib.cache"
)
Variables ¶
View Source
var (
PageCachePrefix = "gincontrib.page.cache"
)
Functions ¶
func CachePage ¶
func CachePage(store persistence.CacheStore, expire time.Duration, handle gin.HandlerFunc) gin.HandlerFunc
Cache Decorator
func SiteCache ¶
func SiteCache(store persistence.CacheStore, expire time.Duration) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.