public boolean ifAlreadyExists(Merchant merchant, Wallets wallet) { String merchantId = template .opsForValue() .get("merchant." + merchant.getName() + wallet.getRedisMerchantIdKey()); return merchantId == null ? false : true; }