Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedCollection ¶
type CachedCollection struct {
// contains filtered or unexported fields
}
func NewCachedCollection ¶
func NewCachedCollection(collection app.LinksCollectionInterface, cache LinksCacheInterface) *CachedCollection
func (*CachedCollection) GenerateKey ¶
func (c *CachedCollection) GenerateKey(URL string) (string, error)
func (*CachedCollection) GenerateKeys ¶
func (c *CachedCollection) GenerateKeys(URLs []string) (map[string]string, error)
type CachedEntry ¶
type CachedEntry struct {
// contains filtered or unexported fields
}
type FrequencyEntry ¶
type FrequencyEntry struct {
// contains filtered or unexported fields
}
func NewFrequencyEntry ¶
func NewFrequencyEntry(frequency int) *FrequencyEntry
type LFUCache ¶
type LFUCache struct {
// contains filtered or unexported fields
}
func NewLFUCache ¶
type LinksCacheInterface ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache(rdb *redis.Client) *RedisCache
func (*RedisCache) Put ¶
func (c *RedisCache) Put(key string, value interface{}) error
Click to show internal directories.
Click to hide internal directories.