Versions in this module Expand all Collapse all v1 v1.0.0 Nov 11, 2024 Changes in this version + var ErrCredentialsIsNotPresentInCache = errors.New("credentials username 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) GetByUsername(ctx context.Context, username string) (*domain.Credentials, error) + func (client *RedisClient) Save(ctx context.Context, credentials *domain.Credentials) error