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
}
func (*Cache) SetWithTTL ¶
type DBCache ¶
type DBCache struct {
// contains filtered or unexported fields
}
func NewDBCache ¶
func NewDBCache(sf *singleflight.Group, dbFunc func() *gorm.DB) *DBCache
func (*DBCache) SetWithTTL ¶
type MetricsForCache ¶
type MetricsForCache struct {
Cache contracts.CacheInterface
}
func NewMetricsForCache ¶
func NewMetricsForCache(c contracts.CacheInterface) *MetricsForCache
func (*MetricsForCache) Clear ¶
func (m *MetricsForCache) Clear(key contracts.CacheKeyInterface) error
func (*MetricsForCache) Remember ¶
func (m *MetricsForCache) Remember(key contracts.CacheKeyInterface, seconds int, fn func() ([]byte, error)) ([]byte, error)
func (*MetricsForCache) SetWithTTL ¶
func (m *MetricsForCache) SetWithTTL(key contracts.CacheKeyInterface, value []byte, seconds int) error
Click to show internal directories.
Click to hide internal directories.