student

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStudentIsNotPresentInCache = errors.New("student id is not present as a key in the cache")
)

Functions

This section is empty.

Types

type RedisClient

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

func New

func New(client *redis.Client, cfg *config.Config, log *slog.Logger) *RedisClient

func (*RedisClient) GetByID

func (client *RedisClient) GetByID(ctx context.Context, studentID uuid.UUID) (*domain.Student, error)

func (*RedisClient) Save

func (client *RedisClient) Save(ctx context.Context, student *domain.Student) error

Jump to

Keyboard shortcuts

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