Documentation ¶
Index ¶
- func CreateCacheInstance() error
- func DeleteCacheInstance() error
- func FindCacheInstance() (*redispb.Instance, error)
- func Get(key string) ([]byte, error)
- func IncrementCounter(key string) (int, error)
- func NewPool(addr string) *redis.Pool
- func PeriodicallyPollForCache()
- func Ping(c redis.Conn) error
- func PreloadCache(keyColumn int) error
- func Set(key string, value []byte) error
- func ValidateMemoryStoreAndCreatePool()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCacheInstance ¶ added in v0.0.2
func DeleteCacheInstance() error
deletes the Memorystore Redis instance
func FindCacheInstance ¶
using redis sdk try and find instance details i.e. host ip and port (instance might not exist!)
func IncrementCounter ¶
func PeriodicallyPollForCache ¶
func PeriodicallyPollForCache()
continuously check if memory store is available if not currently working this is incase instances stay live for extended periods while the cache is being created
func PreloadCache ¶
query BigQuery for all rows in table and put into redis (preloading the cache) keyColumn is the column number which you want to use for your redis key for each row
func ValidateMemoryStoreAndCreatePool ¶
func ValidateMemoryStoreAndCreatePool()
if cache has failed (or first run) poll for redis instance information
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.