redis

package
v0.0.0-...-b180f38 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 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 CacheMetrics

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

type RedisCache

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

func NewRedisCache

func NewRedisCache(client *redis.Client, tracer tracing.Tracer) *RedisCache

func (*RedisCache) GetPolicy

func (c *RedisCache) GetPolicy(ctx context.Context, policyID string) (*policy.Policy, error)

func (*RedisCache) SetPolicy

func (c *RedisCache) SetPolicy(ctx context.Context, p policy.Policy, ttl time.Duration) error

Jump to

Keyboard shortcuts

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