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

Support custom timestamp for Set #310

Open
Kyan820815 opened this issue Mar 23, 2022 · 3 comments
Open

Support custom timestamp for Set #310

Kyan820815 opened this issue Mar 23, 2022 · 3 comments

Comments

@Kyan820815
Copy link

I just found when we push to queue, the timestamp is the time we insert into queue,
can we have an option that we can determine the inserted time?
like Set(key string, entry []byte, ts uint64) ?

@Kyan820815 Kyan820815 added the bug label Mar 23, 2022
@janisz janisz added enhancement and removed bug labels Mar 23, 2022
@janisz
Copy link
Collaborator

janisz commented Mar 23, 2022

You can extend your entry with timestamp. Why do you need to manipulate timestamp used by bigcache?

@Kyan820815
Copy link
Author

Cuz we want to insert data, these data originally have its start time, if we use default time as inserting time, it will have a delay.

For example, one data start time is 10:00, expire time 2min, then we insert it at 10:01, using big cache scanning delete feature, it will be deleted at 10:03. however, we want to delete at 10:02. So if we can specify start time at 10:00, we can delete at right time. I do not want to store time into queue cuz we already have "currentTimestamp"

@Kyan820815
Copy link
Author

hi, any update?

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

No branches or pull requests

2 participants