public void Commit()
        {
            if (!_transaction.Commit())
            {
                // RedisTransaction.Commit returns false only when
                // WATCH condition has been failed. So, we should
                // re-play the transaction.

                int       replayCount    = 1;
                const int maxReplayCount = 3;

                while (!_transaction.Replay())
                {
                    if (replayCount++ >= maxReplayCount)
                    {
                        throw new RedisException("Transaction commit was failed due to WATCH condition failure. Retry attempts exceeded.");
                    }
                }
            }
        }