Skip to content

Commit bb443b2

Browse files
authored
Merge pull request #142 from Loris-F/master
RedisTTL have only one parameter
2 parents e7cbf83 + 2d9865f commit bb443b2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Quick.Data.Redis.pas

Lines changed: 3 additions & 4 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;
@@ -468,16 +468,15 @@ function TRedisClient.RedisLLEN(const aKey : string): Integer;
468468
Result := response.Response.ToInteger;
469469
end;
470470
end;
471-
472-
function TRedisClient.RedisTTL(const aKey, aValue : string): Integer;
471+
function TRedisClient.RedisTTL(const aKey : string): Integer;
473472
var
474473
rediscmd : IRedisCommand;
475474
response : IRedisResponse;
476475
begin
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

0 commit comments

Comments
 (0)