Comments (3)
This seems worth doing, but I'm not available atm. I'd be happy to take a PR for this though.
We could make the expirer (threadpool) configurable in the builder, where if one is supplied then the static EXPIRER
doesn't need to be constructed. We can then have a member var inside the ExpiringMap that either points to the user provided expirer or the static one. Similar with expiration.
from expiringmap.
In the intervening months since reporting this issue, we have sadly found it necessary to remove expiringmap from Jdbi, in favor of our own naive caching solution. It is unlikely any of us will be able to devote the time for a PR.
Thank you for the follow up.
from expiringmap.
No worries @qualidafial - hope it's working well for you 👍(random aside, I've used JDBI a lot in the past and really enjoy it).
from expiringmap.
Related Issues (20)
- ConcurrentModificationException when using EntryTreeHashMap's iterator HOT 6
- When Expiration Policy is ACCESSED, New short duration time does not is rescheduled. HOT 2
- Ability to Test Expiry
- Make computeIfAbsent / computeIfPresent operations atomic
- Lazy loaded entry `null` is still cached, for a short period HOT 1
- Variable expiration not working correctly with CREATED policy HOT 2
- Expiring Map has duplicate values HOT 1
- When using foreach, the keyset method loops infinitely HOT 5
- As ExpiringMap is a ConcurrentMap implementation, all the method must be thread safe. HOT 1
- Is it really thread safe?! it behaves differently than ConcurrentHahMap. please run code below.
- Put the same key with different ttl HOT 2
- ExpiringMap may return already expired entry (ExpirationPolicy.ACCESSED)
- [FEATURE] ExpiringMap builder method to configure the map not to accept null values
- Add an onTimeUpdate Event
- Why test object equality when you call put on the map ? HOT 1
- Enterprise "expiringmap". HOT 2
- Thread Issues HOT 3
- Can expiringmap provide a function to obtain multiple keys?
- trying to update the expiry map with value and expiry time for the same key. But the message expires in 60seconds(previous time) rather than 5sec(new time)
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 expiringmap.