{"modulePath":"github.com/answerdev/plugins/cache/redis","version":"v0.0.0-20230920030409-8a747b545be9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package redis\n\n## Types\n\n```go\ntype Cache struct {\n\tConfig      *CacheConfig\n\tRedisClient *redis.Client\n}\n```\n\n```go\nfunc (c *Cache) ConfigFields() []plugin.ConfigField\n```\n\n```go\nfunc (c *Cache) ConfigReceiver(config []byte) error\n```\n\n```go\nfunc (c *Cache) Decrease(ctx context.Context, key string, value int64) (data int64, err error)\n```\n\n```go\nfunc (c *Cache) Del(ctx context.Context, key string) error\n```\n\n```go\nfunc (c *Cache) Flush(ctx context.Context) error\n```\n\n```go\nfunc (c *Cache) GetInt64(ctx context.Context, key string) (data int64, exist bool, err error)\n```\n\n```go\nfunc (c *Cache) GetString(ctx context.Context, key string) (data string, exist bool, err error)\n```\n\n```go\nfunc (c *Cache) Increase(ctx context.Context, key string, value int64) (data int64, err error)\n```\n\n```go\nfunc (c *Cache) Info() plugin.Info\n```\n\n```go\nfunc (c *Cache) SetInt64(ctx context.Context, key string, value int64, ttl time.Duration) error\n```\n\n```go\nfunc (c *Cache) SetString(ctx context.Context, key, value string, ttl time.Duration) error\n```\n\n```go\ntype CacheConfig struct {\n\tEndpoint string `json:\"endpoint\"`\n}\n```\n\n","path":"github.com/answerdev/plugins/cache/redis","name":"redis","synopsis":"","isRedistributable":true}
