-
Couldn't load subscription status.
- Fork 374
Closed
Description
Is your feature request related to a problem? Please describe.
As of Redis version 6.2.0, the command GETSET is regarded as deprecated.
It can be replaced by SET with the GET argument when migrating or writing new code.
Describe the solution you'd like
maybe this interface to avoid breaking change
OptionalString setget(const StringView &key,
const StringView &val,
const std::chrono::milliseconds &ttl = std::chrono::milliseconds(0),
UpdateType type = UpdateType::ALWAYS);
OptionalString setget(const StringView &key,
const StringView &val,
bool keepttl,
UpdateType type = UpdateType::ALWAYS);Describe alternatives you've considered
Keep using getset or use transaction with get then set
Additional context
If you know what interface you want, I can do a PR
Metadata
Metadata
Assignees
Labels
No labels