Comments (4)
No problem, I'm taking 2 weeks off too, no need to rush. :)
from fusioncache.
Hi @fmendez89 and thanks for using FusionCache!
firstly thanks for your contribution to the community, we have just started to use FusionCache on production and has been working flawesly since then. We are constantly trying to use it in different case scenarios
Great! I'm happy you're finding it useful 🎉
I'll try to take a look at this use case and will let you know asap: I'm about to take a break and have my 2 weeks of holidays, but I'll try to answer you before leaving.
from fusioncache.
Hi @fmendez89 , getting back to this.
If I got this right what you would like is to have a TrySet
method that would set some data in the cache, but only if that data is not there yet.
I'm certainly open to a new feature, but first I'd like to explore with you some potential concerns.
These are the first things that I'm thinking about:
- since FusionCache is (optionally) multi-level, how should it work when there's only the memory cache?
- in case of 2 levels, the way it works for all other methods (
TryGet
,Set
,Delete
, etc) is that it first checks the memory cache, then the distributed one. For this method should it do the same or were you thinking about doing the opposite? - when talking to the distributed cache, should it wait for the distributed cache to respond, even in case of timeouts or would it be acceptable to use the already existing timeouts?
- as you correctly pointed out, Redis may have a way to implement this but there are other implementations available and since I'm using the standard
IDistributedCache
as the lingua franca, that abstraction does not have a method to do that
What do you think? How would you approach these points? Thanks in advanced for participating!
from fusioncache.
I'm closing this since there doesn't seem to be interest.
from fusioncache.
Related Issues (20)
- [FEATURE] Expire entire cache HOT 3
- [FEATURE] Limit Memory Size HOT 6
- [QUESTION] Manually remove Redis entry and backplane updates HOT 1
- [Issue] How can I manually expire the cache in the following scenarios? HOT 1
- [QUESTION] Out of memory deserializing HOT 3
- [FEATURE] Disable null caching HOT 1
- [Issue] FusionCache allocates on reads and allocates a lot on writes HOT 9
- [FEATURE] 🔭 OpenTelemetry support HOT 20
- [FEATURE] Disable receiving backplane notifications HOT 4
- [BUG] SkipDistributedCacheReadWhenStale also skips on memory cache miss HOT 10
- [BUG] Mention correct way to call `GetValueAsync<T>(...)` in doc HOT 1
- [FEATURE] 🔒 Extensible Memory Locking HOT 1
- [QUESTION] Can you tell if the cache hit comes from Memory or Distributed? HOT 6
- [QUESTION] Metrics collector potential performance issue HOT 10
- [FEATURE] 🪞 Remove all usage of reflection HOT 6
- [FEATURE] Better detection of incoherent `CacheName`s options HOT 4
- [QUESTION] Can I use FusionCache only for getting data from a 2nd level (distributed) without InMemory part? HOT 5
- [FEATURE] 📢 Add `IgnoreIncomingBackplaneNotifications` options HOT 2
- [FEATURE] Improve nullable for GetOrSet with non-null factory HOT 8
- Explicitly tell the Factory that it failed HOT 9
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 fusioncache.