cache

package
v0.0.0-...-96f1f9d Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(
	addrs string,
	password string,
	certPath string,
) (*Adapter, error)

func (*Adapter) Get

func (a *Adapter) Get(ctx context.Context, key string) (string, error)

func (*Adapter) GetUser

func (a *Adapter) GetUser(ctx context.Context, telegramID int64) (*domain.User, error)

func (*Adapter) Set

func (a *Adapter) Set(ctx context.Context, key string, value any) error

func (*Adapter) SetUser

func (a *Adapter) SetUser(ctx context.Context, telegramID int64, user *domain.User) error

Jump to

Keyboard shortcuts

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