redis

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheCollector

type CacheCollector struct {
	// contains filtered or unexported fields
}

func NewCacheCollector

func NewCacheCollector(client *redis.Client, collector metrics.CacheMetricsCollector) *CacheCollector

func (*CacheCollector) Del

func (c *CacheCollector) Del(ctx context.Context, keys ...string) *redis.IntCmd

func (*CacheCollector) Get

func (c *CacheCollector) Get(ctx context.Context, key string) *redis.StringCmd

func (*CacheCollector) GetClient

func (c *CacheCollector) GetClient() *redis.Client

func (*CacheCollector) HDel

func (c *CacheCollector) HDel(ctx context.Context, key string, fields ...string) *redis.IntCmd

func (*CacheCollector) HGet

func (c *CacheCollector) HGet(ctx context.Context, key, field string) *redis.StringCmd

func (*CacheCollector) HSet

func (c *CacheCollector) HSet(ctx context.Context, key string, values ...any) *redis.IntCmd

func (*CacheCollector) Ping

func (*CacheCollector) PoolStats

func (c *CacheCollector) PoolStats() *redis.PoolStats

func (*CacheCollector) Set

func (c *CacheCollector) Set(ctx context.Context, key string, value any, expiration time.Duration) *redis.StatusCmd

type RedisDataCollector

type RedisDataCollector struct {
	// contains filtered or unexported fields
}

func NewDataCollectorWithRedis

func NewDataCollectorWithRedis(client *redis.Client, keyPrefix string, retention time.Duration, batchSize int) *RedisDataCollector

func (*RedisDataCollector) Close

func (c *RedisDataCollector) Close() error

func (*RedisDataCollector) DBConnections

func (c *RedisDataCollector) DBConnections(count int)

func (*RedisDataCollector) DBQuery

func (c *RedisDataCollector) DBQuery(duration time.Duration, err error)

func (*RedisDataCollector) DBTransaction

func (c *RedisDataCollector) DBTransaction(err error)

func (*RedisDataCollector) GetStats

func (c *RedisDataCollector) GetStats() map[string]any

func (*RedisDataCollector) HealthCheck

func (c *RedisDataCollector) HealthCheck(component string, healthy bool)

func (*RedisDataCollector) MQConsume

func (c *RedisDataCollector) MQConsume(system string, err error)

func (*RedisDataCollector) MQPublish

func (c *RedisDataCollector) MQPublish(system string, err error)

func (*RedisDataCollector) MongoOperation

func (c *RedisDataCollector) MongoOperation(operation string, err error)

func (*RedisDataCollector) RedisCommand

func (c *RedisDataCollector) RedisCommand(command string, err error)

func (*RedisDataCollector) RedisConnections

func (c *RedisDataCollector) RedisConnections(count int)

func (*RedisDataCollector) SearchIndex

func (c *RedisDataCollector) SearchIndex(engine, operation string)

func (*RedisDataCollector) SearchQuery

func (c *RedisDataCollector) SearchQuery(engine string, err error)

type RedisStorage

type RedisStorage struct {
	// contains filtered or unexported fields
}

func NewRedisStorage

func NewRedisStorage(client *redis.Client, keyPrefix string, retention time.Duration) *RedisStorage

func (*RedisStorage) Close

func (r *RedisStorage) Close() error

func (*RedisStorage) Query

func (r *RedisStorage) Query(query metrics.QueryRequest) ([]metrics.Metric, error)

func (*RedisStorage) Store

func (r *RedisStorage) Store(metricsData []metrics.Metric) error

Jump to

Keyboard shortcuts

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