Documentation ¶
Overview ¶
Package redis implements the redis related operations to support Skia perf, specifically for the query UI. It includes two types of methods:
- The methods to interact with the Redis instances management on GCP. Those are done by using cloud.google.com/go/redis/apiv1
- The methods to interact with the Redis data on an Redis instance. Those are done by using github.com/redis/go-redis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCache ¶
func NewRedisCache(ctx context.Context, gcpClient *gcp_redis.CloudRedisClient, config *RedisConfig) (*redisCache, error)
NewRedisCache returns an initialized RedisCache
Types ¶
type RedisConfig ¶
type RedisConfig struct { // The GCP Project of the Redis instance Project string `json:"project,omitempty" optional:"true"` // The Zone (Region) of the Redis instance. Zone string `json:"zone,omitempty" optional:"true"` // The name of the Redis instance. Instance string `json:"instance,omitempty" optional:"true"` // Cache expiration for the given keys. CacheExpirationInMinutes int `json:"cache_expiration_minutes,omitempty" optional:"true"` }
RedisConfig contains properties of a redis instance.
Click to show internal directories.
Click to hide internal directories.