redis

package
v0.0.0-...-67003f8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package redis provides an adapter to redis client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplacementCache

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

func NewReplacementCache

func NewReplacementCache(client *redis.Client, expireDuration time.Duration, keyPrefix string) *ReplacementCache

func (*ReplacementCache) GetReplacementNonce

func (r *ReplacementCache) GetReplacementNonce(ctx context.Context, signingAddress, replacementUUID string) (uint64, error)

func (*ReplacementCache) IncReplacementNonce

func (r *ReplacementCache) IncReplacementNonce(ctx context.Context, signingAddress, replacementUUID string) (uint64, error)

Jump to

Keyboard shortcuts

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