{"modulePath":"github.com/apache/answer-plugins/cache-redis","version":"v1.3.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package redis\n\n## Variables\n\n```go\nvar (\n\n\t//go:embed  info.yaml\n\tInfo embed.FS\n)\n```\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\tUsername string `json:\"username\"`\n\tPassword string `json:\"password\"`\n}\n```\n\n","path":"github.com/apache/answer-plugins/cache-redis","name":"redis","synopsis":"","isRedistributable":true}
