If you are updating from v1.x
to v2.0
most things should go smoothly: probably you'll just need to update the packages and rebuild, that's it.
A couple of things to keep in mind are listed below.
Updating the packages means 2 things:
- update ALL the FusionCache packages, not just the main one
- update the packages in FusionCache ALL connected projects/apps
If you are using a distributed level (L2) and/or a backplane where multiple apps are connected, keep reading for the next point.
Something else to keep in mind is that since this is a major version update, I took the opportunity to break some things: because of this, I updated the wire format identifier, read more here and here for what this means.
Basically this means that if we have an app using v1.4.1
and another using v2.0.0
what happens is:
- both apps will be able to coexist and share the same Redis instance without problems, data corruption or else
- each app will write and read different cache entries, and an update from one app will not be seen from the other. If both apps write the same 100 entries, in Redis you'll find 200 entries (100 written for
v1.4.1
and 100 written forv2.0.0
)
The suggestion is to try to update all the apps sharing the same resources as soon as possible to save resources.
Something else to know is that now the serializers adapters are not depending on RecyclableMemoryStreamManager
anymore, but thanks to a community member contribution are generally better nonetheless.
Some options/properties/methods have been marked as [Obsolete]
for wuite a while: up until now they generated a warning, but with v2
they now generate an error.