Documentation
¶
Index ¶
- func NewRedisClient(cfg common.RedisConfig, environment string) (*redis.Client, error)
- type Cache
- func (c *Cache) Get(ctx context.Context, key string) (json.RawMessage, error)
- func (c *Cache) HasFlag(ctx context.Context, key string) (bool, error)
- func (c *Cache) Set(ctx context.Context, key string, data json.RawMessage, ttl time.Duration) error
- func (c *Cache) SetFlag(ctx context.Context, key string, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisClient ¶
NewRedisClient creates a new Redis client instance.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides get/set operations backed by Redis.
Click to show internal directories.
Click to hide internal directories.