You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The problem/use-case that the feature addresses
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.
The text was updated successfully, but these errors were encountered: