You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This will clear out all SharpRepository related caching across all of the repositories. You must configure the Cache.CachePrefixManager property based on if your code is on a single server or in a multiple server farm or cloud environment.
/// </summary>
publicstaticvoidClearAll()
{
if(CachePrefixManager==null)
thrownewException("You must configure the Cache.CachePrefixManager in order to handle clearing the global cache. You can use the SingleServerCachePrefixManager if you are on a single server, and the MultiServerCachePrefixManager if you are in the cloud or on multiple servers and use a caching provider like Memcached or Redis.");
// this increments a static counter by 1
// the static counter is used for all of the cache keys as part of the prefix