cache

package
v0.0.0-...-a051c0a Latest Latest
Warning

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

Go to latest
Published: Jun 2, 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 RedisCache

type RedisCache struct {
	User UserCache
	// contains filtered or unexported fields
}

func New

type UserCache

type UserCache interface {
	SaveInviteToken(
		ctx context.Context,
		token string,
		req model.SignUpRequest,
		ttl time.Duration,
	) error

	GetSignUpRequest(
		ctx context.Context,
		token string,
	) (request model.SignUpRequest, err error)

	SaveAccessToken(
		ctx context.Context,
		token string,
		ttl time.Duration,
	) error

	ValidateAccessToken(
		ctx context.Context,
		token string,
	) (bool, error)
}

Jump to

Keyboard shortcuts

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