zcache icon indicating copy to clipboard operation
zcache copied to clipboard

ModifySetWithExpire?

Open satoqz opened this issue 4 months ago • 1 comments

To fully solve our TOTP validation rate limiting use case in OpenBao (as initially referenced by @cipherboy in https://github.com/arp242/zcache/issues/6#issue-3294824006), we'd need to specify a custom expiration time in ModifySet. I think ModifySetWithExpire would be in line with existing APIs such as GetOrAddWithExpire.

Let me know if I've overlooked something, happy to contribute this otherwise :)

satoqz avatar Sep 08 '25 10:09 satoqz

Sure, sounds good.

arp242 avatar Sep 08 '25 20:09 arp242