Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedResponse ¶
type FileCache ¶
type FileCache struct {
// contains filtered or unexported fields
}
func NewFileCache ¶
type MemoryCache ¶
type MemoryCache struct {
// contains filtered or unexported fields
}
func NewMemoryCache ¶
func NewMemoryCache() *MemoryCache
func (*MemoryCache) Clear ¶
func (m *MemoryCache) Clear() error
func (*MemoryCache) Delete ¶
func (m *MemoryCache) Delete(key string) error
func (*MemoryCache) Get ¶
func (m *MemoryCache) Get(key string) (CachedResponse, bool)
func (*MemoryCache) Set ¶
func (m *MemoryCache) Set(key string, value CachedResponse, duration time.Duration) error
Click to show internal directories.
Click to hide internal directories.