func (r redisRepo) Fetch(ID string, v interface{}) error {
	data, err := r.client.Get(r.context, r.createRedisKey(ID))
	if data == "" || err != nil {
		return errKeyNotFound
	}

	err = json.Unmarshal([]byte(data), v)
	if err != nil {
		return err
	}

	return nil
}
// Fetch a key from the repository, or err
Fetch a key from the repository, or err
// Fetch a key from the repository or err
func (r redisRepo) Fetch(ID string, v interface{}) error {
	data, err := r.client.Get(r.context, r.createRedisKey(ID))
	if data == "" || err != nil {
		return errKeyNotFound
	}
	err = json.Unmarshal([]byte(data), v)
	if err != nil {
		return err
	}
	return nil
}
func ( r redisRepo ) Fetch ( ID string , v interface { } ) error { data , err := r . client . Get ( r . context , r . createRedisKey ( ID ) ) if data == " " || err != nil { return errKeyNotFound } err = json . Unmarshal ( [ ] byte ( data ) , v ) if err != nil { return err } return nil }
Fetch a key from the repository, or err
Fetch a key from the repository or err