Browse Source

Merge pull request #121 from Loris-F/redis-TTL-have-one-parameter

the redis TTL command have only one parameter
Exilon 1 year ago
parent
commit
acdcb690a1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Quick.Data.Redis.pas

+ 3 - 3
Quick.Data.Redis.pas

@@ -144,7 +144,7 @@ type
     function RedisZRANGE(const aKey : string; aStartPosition, aEndPosition : Int64) : TArray<string>;
     function RedisZRANGE(const aKey : string; aStartPosition, aEndPosition : Int64) : TArray<string>;
     function RedisZRANGEBYSCORE(const aKey : string; aMinScore, aMaxScore : Int64) : TArray<TRedisSortedItem>;
     function RedisZRANGEBYSCORE(const aKey : string; aMinScore, aMaxScore : Int64) : TArray<TRedisSortedItem>;
     function RedisLLEN(const aKey : string): Integer;
     function RedisLLEN(const aKey : string): Integer;
-    function RedisTTL(const aKey, aValue : string): Integer;
+    function RedisTTL(const aKey: string): Integer;
     function RedisAUTH(const aPassword : string) : Boolean;
     function RedisAUTH(const aPassword : string) : Boolean;
     function RedisPING : Boolean;
     function RedisPING : Boolean;
     function RedisQUIT : Boolean;
     function RedisQUIT : Boolean;
@@ -469,7 +469,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-function TRedisClient.RedisTTL(const aKey, aValue : string): Integer;
+function TRedisClient.RedisTTL(const aKey : string): Integer;
 var
 var
   rediscmd : IRedisCommand;
   rediscmd : IRedisCommand;
   response : IRedisResponse;
   response : IRedisResponse;
@@ -477,7 +477,7 @@ begin
   Result := 0;
   Result := 0;
   rediscmd := TRedisCommand.Create('TTL')
   rediscmd := TRedisCommand.Create('TTL')
                .AddArgument(aKey)
                .AddArgument(aKey)
-               .AddArgument(aValue);
+               ;
   response := Command(rediscmd.ToCommand);
   response := Command(rediscmd.ToCommand);
   if response.IsDone then
   if response.IsDone then
   begin
   begin