redis

package
v0.0.0-...-e10dee8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkRedisStorage

type LinkRedisStorage struct {
	Client *redis.Client
}

func NewLinkStorage

func NewLinkStorage(cli *redis.Client) *LinkRedisStorage
func (r *LinkRedisStorage) GetLink(ctx context.Context, token string) (*model.Link, error)

func (*LinkRedisStorage) StartRecalculation

func (r *LinkRedisStorage) StartRecalculation(interval time.Duration, deleted chan []string)
func (r *LinkRedisStorage) StoreLink(ctx context.Context, link *model.Link) error

Jump to

Keyboard shortcuts

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