Skip to content

Commit acdcb69

Browse files
authored
Merge pull request #121 from Loris-F/redis-TTL-have-one-parameter
the redis TTL command have only one parameter
2 parents 8d0ef7e + ccc967d commit acdcb69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Quick.Data.Redis.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;
@@ -469,15 +469,15 @@ function TRedisClient.RedisLLEN(const aKey : string): Integer;
469469
end;
470470
end;
471471

472-
function TRedisClient.RedisTTL(const aKey, aValue : string): Integer;
472+
function TRedisClient.RedisTTL(const aKey : string): Integer;
473473
var
474474
rediscmd : IRedisCommand;
475475
response : IRedisResponse;
476476
begin
477477
Result := 0;
478478
rediscmd := TRedisCommand.Create('TTL')
479479
.AddArgument(aKey)
480-
.AddArgument(aValue);
480+
;
481481
response := Command(rediscmd.ToCommand);
482482
if response.IsDone then
483483
begin

0 commit comments

Comments
 (0)