Documentation
¶
Index ¶
- Constants
- type DpCache
- func (dc *DpCache) AddUpdateFunc(key string, updateFunc func() (*model.HomepageData, error))
- func (dc *DpCache) Close()
- func (dc *DpCache) Get(key string) (interface{}, bool)
- func (dc *DpCache) Set(key string, data *model.HomepageData)
- func (dc *DpCache) StartUpdates(ctx context.Context, errorChannel chan error)
- func (dc *DpCache) UpdateContent(ctx context.Context) error
- type DpCacher
Constants ¶
View Source
const (
// HomepageCacheKey is used to cache the rendered homepage
HomepageCacheKey = "homepage-cache"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DpCache ¶
type DpCache struct {
// contains filtered or unexported fields
}
func (*DpCache) AddUpdateFunc ¶
func (dc *DpCache) AddUpdateFunc(key string, updateFunc func() (*model.HomepageData, error))
func (*DpCache) StartUpdates ¶
Click to show internal directories.
Click to hide internal directories.