Versions in this module Expand all Collapse all v1 v1.0.0 Nov 9, 2024 Changes in this version + var ErrTeacherIsNotPresentInCache = errors.New("teacher id is not present as a key in the cache") + type RedisClient struct + func New(client *redis.Client, cfg *config.Config, log *slog.Logger) *RedisClient + func (client *RedisClient) GetByID(ctx context.Context, teacherID uuid.UUID) (*domain.Teacher, error) + func (client *RedisClient) Save(ctx context.Context, teacher *domain.Teacher) error