Hi, I have successfully implemented couchbase caching using Upsert but i now need to “mark” each cached record with the environment the caching is running on.
My implementation is on the same load balanced cluster for multiple environments and the problem i am currently facing is the cache is available on ALL environments even though it was created on a certain env.
Example.
Create cache on Env 1. (Saves to global Load Balanced Couchbase server)
Retrieve cache on Env 1.
Cache is also available on Env 2 using the same Couchbase server.
This is my working C# code.
private IBucket GetBucket()
{
var cb = new Cluster(_config.GetConfigValue("CouchbaseCluster"));
return cb.OpenBucket();
}
GetBucket().Upsert("Key","Value", timeoutValue);
Is there an additional param on the upsert command to indicate the environment maybe?
Thanks