Documentation
¶
Index ¶
- func GenerateKey(input string) string
- type Cache
- func (c *Cache) Clear(ctx context.Context) error
- func (c *Cache) Count() int
- func (c *Cache) Delete(ctx context.Context, key string) error
- func (c *Cache) Get(ctx context.Context, key string) ([]byte, bool, error)
- func (c *Cache) GetConfig() *Config
- func (c *Cache) Set(ctx context.Context, key string, response []byte, ttl time.Duration) error
- func (c *Cache) Stop()
- type CacheItem
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewCacheWithConfig ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.