File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ TRedisClient = class
144144 function RedisZRANGE (const aKey : string; aStartPosition, aEndPosition : Int64) : TArray<string>;
145145 function RedisZRANGEBYSCORE (const aKey : string; aMinScore, aMaxScore : Int64) : TArray<TRedisSortedItem>;
146146 function RedisLLEN (const aKey : string): Integer;
147- function RedisTTL (const aKey, aValue : string): Integer;
147+ function RedisTTL (const aKey: string): Integer;
148148 function RedisAUTH (const aPassword : string) : Boolean;
149149 function RedisPING : Boolean;
150150 function RedisQUIT : Boolean;
@@ -468,16 +468,15 @@ function TRedisClient.RedisLLEN(const aKey : string): Integer;
468468 Result := response.Response.ToInteger;
469469 end ;
470470end ;
471-
472- function TRedisClient.RedisTTL (const aKey, aValue : string): Integer;
471+ function TRedisClient.RedisTTL (const aKey : string): Integer;
473472var
474473 rediscmd : IRedisCommand;
475474 response : IRedisResponse;
476475begin
477476 Result := 0 ;
478477 rediscmd := TRedisCommand.Create(' TTL' )
479478 .AddArgument(aKey)
480- .AddArgument(aValue) ;
479+ ;
481480 response := Command(rediscmd.ToCommand);
482481 if response.IsDone then
483482 begin
You can’t perform that action at this time.
0 commit comments