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

Timestamp-independent ordering in SQLite storage #5

Open
bofm opened this issue Dec 17, 2017 · 0 comments
Open

Timestamp-independent ordering in SQLite storage #5

bofm opened this issue Dec 17, 2017 · 0 comments

Comments

@bofm
Copy link
Owner

bofm commented Dec 17, 2017

Currently the cache cleanup and eviction functionality is dependent on the timestamp of the item. The timestamp is calculated when the item is saved to the cache storage. There is low probability of having the same timestamp in more than one item. Therefore the wrong one might be evicted. One possible solution might be to add an autoincrement field to the items in storage.

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

1 participant