Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

en/lc/2622/ #2835

giscus[bot] bot announced in Announcements
May 19, 2024 · 1 comments · 3 replies
Discussion options

en/lc/2622/

LeetCode solutions in any programming language

https://leetcode.doocs.org/en/lc/2622/

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

Hey!

Once the duration has elapsed, the key should be inaccessible.

There will be no records about expired data, if .removeExpire() will run

private now(): number { return new Date().getTime(); }

IMHO Date.now() is more convinient for such purposes )

You must be logged in to vote
3 replies
Comment options

yanglbme May 19, 2024 — with giscus
Maintainer

Hello, could you please submit a pull request to improve the existing solution?

Comment options

Shure!

Comment options

@yanglbme done )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /