cache

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSON

func GetJSON[T any](rdb *redis.Client, ctx context.Context, key string) (T, error)

func GetScore

func GetScore(rdb *redis.Client, ctx context.Context, scoreId int) (osuapi.Score, error)

func GetStats

func GetStats(rdb *redis.Client, ctx context.Context) (domain.Stats, error)

func GetTopUsers added in v0.11.0

func GetTopUsers(rdb *redis.Client, ctx context.Context, limit, page int) (domain.Paged[domain.UserExtended], error)

func SetJSON

func SetJSON(rdb *redis.Client, ctx context.Context, key string, val any, ttl time.Duration) error

func SetScore

func SetScore(rdb *redis.Client, ctx context.Context, score osuapi.Score) error

func SetStats

func SetStats(rdb *redis.Client, ctx context.Context, stats domain.Stats) error

func SetTopUsers added in v0.11.0

func SetTopUsers(rdb *redis.Client, ctx context.Context, users domain.Paged[domain.UserExtended], limit, page int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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