-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deserialization problem caused by Type in AbpCache data #4709
Comments
Hi @liangshiw , can you give an example of this? |
Write the cache in the |
Related: #3219 We should consider enhancing it. |
dev...maliming/redisWithoutType If we remove the Type in Redis. This will be breaking change. Should we make compatible code for this? |
The cache should be cleared on deployment. I don't know how we can do this automatically. |
any solution now? |
@TingtingAn |
In the design of ABP, each cached data will have type
Type
information, and usetype
to deserialize data when getting cache.aspnetboilerplate/src/Abp/Runtime/Caching/AbpCacheData.cs
Line 37 in 3cf5e84
But in different projects or solutions, the type of assembly is inconsistent with the namespace, which will cause deserialization exceptions.
aspnetboilerplate/src/Abp.RedisCache/Runtime/Caching/Redis/AbpRedisCache.cs
Line 36 in 3cf5e84
The text was updated successfully, but these errors were encountered: