Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added support for UnWatch

  • Loading branch information...
commit f39b5f9525308cf3586e4d862dc693393224b32b 1 parent d236ae0
@ik5 authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/rd_commands.pas
View
10 src/rd_commands.pas
@@ -970,6 +970,11 @@ TRedisTransaction = class (TRedisCommands)
When that happens, you should retry to execute the commands.
*)
function Watch(keys : array of const) : TRedisReturnType; virtual;
+
+ (*
+
+ *)
+ procedure Unwatch; virtual;
published
property ErrorCode;
property Logger;
@@ -1008,6 +1013,11 @@ function TRedisTransaction.Watch(keys: array of const): TRedisReturnType;
Result := send_command2('WATCH', keys);
end;
+procedure TRedisTransaction.Unwatch;
+begin
+ send_command2('UNWATCH');
+end;
+
{ TRedisServer }
function TRedisServer.BGRewriteAOF: TRedisReturnType;
Please sign in to comment.
Something went wrong with that request. Please try again.