This repo shows how to use HybridCaching provider of EasyCaching
It contains two apps, both of them are handle only one cache key named cachekey
.
Here are some screenshots for this demo.
Running up App1
and App2
at first.
Then running up Client
, you may get the following result.
- First time, there are no cached value, both App1 and App2 get
null
value. - App1 sets a value(
val-from app1
) for it. - Second time, both App1 and App2 get
val-from app1
from cached. - App2 sets a value(
val-from app2
) for it. - Third time, both App1 and App2 get
val-from app2
from cached. Be careful, App1 does not getval-from app1
from cached.
Let's take a look the log of App1 and App2