Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache stores reference to a storage
func (*Cache) CachePage ¶
func (cache *Cache) CachePage(handle gin.HandlerFunc) gin.HandlerFunc
CachePage caches response from gin handler function
func (*Cache) CachePageWithoutHeader ¶
func (cache *Cache) CachePageWithoutHeader(handle gin.HandlerFunc) gin.HandlerFunc
CachePageWithoutHeader returns a page from cache without headers
func (*Cache) CachePageWithoutQuery ¶
func (cache *Cache) CachePageWithoutQuery(handle gin.HandlerFunc) gin.HandlerFunc
CachePageWithoutQuery adds ability to ignore GET query parameters
Click to show internal directories.
Click to hide internal directories.