repository

package
v0.0.0-...-faaa4ac Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUserCacheRepository

type IUserCacheRepository interface {
	Set(ctx context.Context, key string, value model.UserCache, ttl int64) error

	Get(ctx context.Context, key string) (*model.UserCache, error)
}

type UserCacheRepository

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

func NewUserCacheRepository

func NewUserCacheRepository(client *redis.Client) *UserCacheRepository

func (*UserCacheRepository) Get

func (*UserCacheRepository) Set

func (u *UserCacheRepository) Set(ctx context.Context, key string, value model.UserCache, ttl int64) error

Jump to

Keyboard shortcuts

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