Documentation ¶
Index ¶
- type Cache
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Config *CacheConfig RedisClient *redis.Client }
func (*Cache) ConfigFields ¶
func (c *Cache) ConfigFields() []plugin.ConfigField
func (*Cache) ConfigReceiver ¶
type CacheConfig ¶
type CacheConfig struct {
Endpoint string `json:"endpoint"`
}
Click to show internal directories.
Click to hide internal directories.