Versions in this module Expand all Collapse all v1 v1.3.0 Jan 7, 2025 Changes in this version + var Info embed.FS + type Cache struct + Config *CacheConfig + RedisClient *redis.Client + func (c *Cache) ConfigFields() []plugin.ConfigField + func (c *Cache) ConfigReceiver(config []byte) error + func (c *Cache) Decrease(ctx context.Context, key string, value int64) (data int64, err error) + func (c *Cache) Del(ctx context.Context, key string) error + func (c *Cache) Flush(ctx context.Context) error + func (c *Cache) GetInt64(ctx context.Context, key string) (data int64, exist bool, err error) + func (c *Cache) GetString(ctx context.Context, key string) (data string, exist bool, err error) + func (c *Cache) Increase(ctx context.Context, key string, value int64) (data int64, err error) + func (c *Cache) Info() plugin.Info + func (c *Cache) SetInt64(ctx context.Context, key string, value int64, ttl time.Duration) error + func (c *Cache) SetString(ctx context.Context, key, value string, ttl time.Duration) error + type CacheConfig struct + Endpoint string + Password string + Username string