Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheInterface ¶
type CacheInterface interface { ServeCached(w http.ResponseWriter, r *http.Request, key string, handler RecacheHandler) DeleteCache(key string) Cache(key string, body io.Reader) Has(key string) bool Close() }
func FromConfig ¶
func FromConfig(c *config.CacheConfig) (cache CacheInterface, err error)
create cache from config structure
func NewFileCache ¶
func NewFileCache() CacheInterface
func NewNullCache ¶
func NewNullCache() CacheInterface
type FileCache ¶
type FileCache struct { }
func (*FileCache) DeleteCache ¶
func (*FileCache) ServeCached ¶
func (self *FileCache) ServeCached(w http.ResponseWriter, r *http.Request, key string, handler RecacheHandler)
type NullCache ¶
type NullCache struct { }
func (*NullCache) DeleteCache ¶
func (*NullCache) ServeCached ¶
func (self *NullCache) ServeCached(w http.ResponseWriter, r *http.Request, key string, handler RecacheHandler)
Click to show internal directories.
Click to hide internal directories.