redis

package
v0.0.0-...-56a2066 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package redis implements the redis related operations to support Skia perf, specifically for the query UI. It includes two types of methods:

  1. The methods to interact with the Redis instances management on GCP. Those are done by using cloud.google.com/go/redis/apiv1
  2. 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL