Documentation
¶
Index ¶
Constants ¶
View Source
const ( HCacheControlKey = "Cache-Control" HContentDispositionKey = "Content-Disposition" HContentTypeKey = "Content-Type" HCacheKey = "X-Cache" HLastModified = "Last-Modified" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Read(cacheKey string) (*CacheContent, error) Write(cacheKey string, content *CacheContent) error }
func NewFileSystemCache ¶
func NewFileSystemCache() Cache
func NewInMemoryCache ¶
func NewInMemoryCache() Cache
Click to show internal directories.
Click to hide internal directories.