Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Quick.Data.Redis.pas
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ TRedisClient = class
function RedisZRANGE(const aKey : string; aStartPosition, aEndPosition : Int64) : TArray<string>;
function RedisZRANGEBYSCORE(const aKey : string; aMinScore, aMaxScore : Int64) : TArray<TRedisSortedItem>;
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 RedisPING : Boolean;
function RedisQUIT : Boolean;
Expand Down Expand Up @@ -468,16 +468,15 @@ function TRedisClient.RedisLLEN(const aKey : string): Integer;
Result := response.Response.ToInteger;
end;
end;

function TRedisClient.RedisTTL(const aKey, aValue : string): Integer;
function TRedisClient.RedisTTL(const aKey : string): Integer;
var
rediscmd : IRedisCommand;
response : IRedisResponse;
begin
Result := 0;
rediscmd := TRedisCommand.Create('TTL')
.AddArgument(aKey)
.AddArgument(aValue);
;
response := Command(rediscmd.ToCommand);
if response.IsDone then
begin
Expand Down