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
- TODO(wenbinzhang) 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 ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
RedisClient implements RedisWrapper
func NewRedisClient ¶
func NewRedisClient(ctx context.Context, gcpClient *gcp_redis.CloudRedisClient, traceStore *tracestore.TraceStore, tilesToCache int) *RedisClient
Create a new Redisclient.
func (*RedisClient) ListRedisInstances ¶
List all Redis instances based on the parent string, which is like "projects/{project}/locations/{location}"
func (*RedisClient) RefreshCachedQueries ¶
func (r *RedisClient) RefreshCachedQueries(ctx context.Context, instance *rpb.Instance)
Routine to update the cache for skia perf query UI.
func (*RedisClient) StartRefreshRoutine ¶
func (r *RedisClient) StartRefreshRoutine(ctx context.Context, refreshPeriod time.Duration, config *redis_client.RedisConfig)
Start a routine to periodically access the Redis instance.
Click to show internal directories.
Click to hide internal directories.