Closed ledpup closed 3 years ago
It sounds like you need to setup the Cache Store. Start by creating a .NET Core Stateful Service. Follow the instructions on this page https://service-fabric-distributed-cache.socreate.it/docs/set-up/how-to-set-up. The service that you create in this step will be the service URI you will use when you create your client app that is using the IDistributedCache.
Hi @lurock, you're correct. I hadn't inherited from DistributedCacheStoreService in the correct class. I have another issue now, but this one is closed.
I'm trying to set the cache for a key. I think the basic code is there and working. When I run it without a CacheStoreServiceUri I get the following error.
When I set the CacheStoreServiceUri, I get the following error.
I think the problem is: I don't know what the CacheStoreServiceUri is supposed to be set to. The documentation says:
The sample code has it as "fabric:/ServiceFabricDistributedCache/DistributedCacheStore". I took that and guessed what my URI might be. I don't think I guessed correctly.
Anyone got a suggestion on how to do this?