func (r redisRepo) Remove(k GenericKey) error {
	if k.GetAddressHash() != nil {
		_, _ = r.client.SRem(r.context, r.createRedisKey(k.GetAddressHash().String()), k.GetID())
	}

	_, err := r.client.Del(r.context, r.createRedisKey(k.GetID()))
	return err
}
// Remove the given key from the repository
Remove the given key from the repository
// Remove the given key from the repository
func (r redisRepo) Remove(k GenericKey) error {
	if k.GetAddressHash() != nil {
		_, _ = r.client.SRem(r.context, r.createRedisKey(k.GetAddressHash().String()), k.GetID())
	}
	_, err := r.client.Del(r.context, r.createRedisKey(k.GetID()))
	return err
}
func ( r redisRepo ) Remove ( k GenericKey ) error { if k . GetAddressHash ( ) != nil { _ , _ = r . client . SRem ( r . context , r . createRedisKey ( k . GetAddressHash ( ) . String ( ) ) , k . GetID ( ) ) } _ , err := r . client . Del ( r . context , r . createRedisKey ( k . GetID ( ) ) ) return err }
Remove the given key from the repository
Remove the given key from the repository