redis

package
v0.0.0-...-5ed4770 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package redis provides a Redis-backed implementation of the cache.Cache interface.

Package redis provides a Redis-backed implementation of the cache.Cache interface.

This file contains connection count management methods.

Package redis provides a Redis-backed implementation of the cache.Cache interface.

This file contains Lua scripts for atomic seq/message-ID operations.

Index

Constants

This section is empty.

Variables

View Source
var ErrCacheClosed = errors.New("cache: closed")

ErrCacheClosed is returned when a method is called on a closed cache.

Functions

func New

func New(cfg config.RedisConfig, opts ...Option) (cache.Cache, error)

New creates a new Redis-backed Cache.

Types

type Option

type Option func(*options)

Option is a functional option for redisCache.

func WithConnCountTTL

func WithConnCountTTL(d time.Duration) Option

WithConnCountTTL sets the TTL for connection count keys. Default: 360s.

Jump to

Keyboard shortcuts

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