The problem/use-case that the feature addresses
local exists = redis.call('EXISTS', KEYS[1])
if exists == 1 then
redis.call('HSET', KEYS[1], 'expire', ARGV[1])
end
return exists
A description of the problem that the feature will solve, or the use-case with which the feature will be used.
I'm currently using this script via EVAL. But I think the best option would be if we have the HSETXX command.
Description of the feature
HSET if keys exist and return true/false if keys exist
A description of what you want to happen.
HSETXX only for existing keys and return true/false if key exist
Alternatives you've considered
HSETNX, but it is only for non-existing keys
Any alternative solutions or features you've considered, including references to existing open and closed feature requests in this repository.
HSETXX searching do nothing
Additional information
Any additional information that is relevant to the feature request.
Comment From: enjoy-binbin
look like it can be fit into #9058
Comment From: Cheban1996
look like it can be fit into #9058
Нes it looks similar I think HSETXX name it's better then HSETEX But it isn't import for me