Comments (7)
@RelicOfTesla Do you have any plans?
from go-generics-cache.
use Priority Queue.
like https://github.com/jellydator/ttlcache/blob/v3/expiration_queue_test.go
https://github.com/oleiade/lane
https://github.com/rdleal/go-priorityq/blob/main/kpq/keyed_priority_queue_test.go#L42
from go-generics-cache.
@RelicOfTesla I have released v1.4.0.
from go-generics-cache.
@Code-Hex Still scanning with all key??? You only need to check if the top items in the priority queue have expired.
from go-generics-cache.
@RelicOfTesla not all scanned
Lines 231 to 251 in 5303a9a
from go-generics-cache.
Well, I read it wrong, but you only deleted one element ??
from go-generics-cache.
@RelicOfTesla No, Please read my test cases. I tested them
from go-generics-cache.
Related Issues (15)
- Maybe change containers/list to implementations on generics HOT 5
- Improved performance/memory usage for items with an expiry HOT 8
- Clock policy: Not show all the page with sequential access pattern HOT 1
- Can a read-write lock be used in the cache instead of a mutex? HOT 1
- fatal error: concurrent map read and map write HOT 1
- Panic when deleting expired items HOT 3
- LFU: Allow setting the frequency and update the heap HOT 2
- Panic when delete expired items. HOT 1
- Feature: Add save and load functions in cache HOT 6
- Len() method missing from common cache interface HOT 4
- Nil panic in janitor HOT 1
- expiration not update
- LFU Delete/pop key take a long time HOT 5
- Is this cache thread safe or not? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-generics-cache.