Hi everyone
I've just got a few questions relating to SysGlobalObjectCache; I know there is good help around, but I'm struggling to find a few answers... (The best source I think is https://blogs.msdn.microsoft.com/axperf/2011/12/29/using-sysglobalobjectcache-sgoc-and-understanding-its-performance-implications/)
Here are some questions:
1) To 'Connect' to or instantiated a SysGlobalObjectCache object, you use
SysGlobalObjectCache sgoc = new SysGlobalObjectCache();
Since a singleton pattern is used, this will always return the current instance of the object. Why then do I see cache being retrieved like this (what's the gain?):
if(classfactory)
{
c = classfactory.globalObjectCache();
}
else
{
c = new SysGlobalObjectCache();
}
2) According the article above, "the SGOC will propagate “clear” calls to all clients and other AOS instances"; I presume Cache is cleared automatically as it gets full. Does the 'clear' method that gets propagated flush per scope, or per key or per value etc? How much cache gets flushed when clear is called?
Thank you
*This post is locked for comments