Orleans.Redis
Orleans.Redis copied to clipboard
FLUSHALL required between running different code
I am working Orleans samples here https://github.com/dodyg/practical-aspnetcore/tree/net6.0/projects/orleans that uses this AddRedisGrainStorage. The thing is I have to FLUSHALL
in redis-cli between samples because serializations errors. How can I prevent this from happening? Is there any specific key or namespace I can add?
What exact serialization errors do you receive? I assume that these are JSON serialization errors. May be your different projects use same grain interface & grain class names (including namespaces), but they have different state types in different projects. That could lead to errors if grains with same keys are reused within samples.