Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法把已有的缓存设置成不过期的BUG #1199

Closed
UDBIAWDIF opened this issue Apr 29, 2024 · 4 comments
Closed

无法把已有的缓存设置成不过期的BUG #1199

UDBIAWDIF opened this issue Apr 29, 2024 · 4 comments

Comments

@UDBIAWDIF
Copy link

因为Redis不过期的TTL就是-1, 但是我如果设置已有的数据TTL为-1时, 提示如果TTL<=0会删除数据, 这是个很明显的BUG

@qishibo
Copy link
Owner

qishibo commented Apr 29, 2024

TTL右边有个x,就是持久化的作用

@qishibo
Copy link
Owner

qishibo commented Apr 29, 2024

不过你倒是提了个醒,可能会有人和你一样,我可以兼容一下设置为-1时直接将key持久化

@xiaokentrl
Copy link

不过你倒是提了个醒,可能会有人和你一样,我可以兼容一下设置为-1时直接将key持久化

加个括号(持久化), 方便新手使用,毕竟软件使用习惯都是从新手过来的。

qishibo added a commit that referenced this issue May 23, 2024
@qishibo
Copy link
Owner

qishibo commented May 23, 2024

兼容了

@qishibo qishibo closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants