rediscache

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "rediscache"

Variables

This section is empty.

Functions

func NewRedisCache

func NewRedisCache(ctx context.Context, _ adapter.Core, logger log.Logger, tag string, args any) (adapter.PluginExecutor, error)

Types

type Args

type Args struct {
	Address  string `json:"address"`
	Password string `json:"password"`
	DB       int    `json:"db"`
}

type RedisCache

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

func (*RedisCache) APIHandler

func (r *RedisCache) APIHandler() chi.Router

func (*RedisCache) Close

func (r *RedisCache) Close() error

func (*RedisCache) Exec

func (r *RedisCache) Exec(ctx context.Context, dnsCtx *adapter.DNSContext, argsID uint16) (adapter.ReturnMode, error)

func (*RedisCache) LoadRunningArgs

func (r *RedisCache) LoadRunningArgs(_ context.Context, args any) (uint16, error)

func (*RedisCache) Start

func (r *RedisCache) Start() error

func (*RedisCache) Tag

func (r *RedisCache) Tag() string

func (*RedisCache) Type

func (r *RedisCache) Type() string

Jump to

Keyboard shortcuts

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