Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Close() error
- func (c *Cache) Get(ctx context.Context, key string) (string, error)
- func (c *Cache) GetTopDomains(ctx context.Context, limit int) ([]string, error)
- func (c *Cache) Increment(ctx context.Context, key string, ttl time.Duration) (int64, error)
- func (c *Cache) Set(ctx context.Context, key string, value string, ttl time.Duration) error
- func (c *Cache) TrackFrequency(ctx context.Context, domain string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.