public static void InitClient() { CacheHelper <TKey, TVal> .Close(); Properties <string, string> config = new Properties <string, string>(); CacheHelper <TKey, TVal> .InitConfig(config); }
public void DoDurableCloseCache() { FwkInfo("In DoDurableCloseCache()"); try { bool keepalive = GetBoolValue(KeepAlive); bool isDurable = GetBoolValue(IsDurable); FwkInfo("KeepAlive is {0}, isDurable is {1}", keepalive, isDurable); if (isDurable && keepalive) { CacheHelper <TKey, TVal> .CloseKeepAlive(); } else { CacheHelper <TKey, TVal> .Close(); } } catch (Exception ex) { FwkSevere("DoDurableCloseCache() Caught Exception: {0}", ex); throw; } FwkInfo("DoDurableCloseCache() complete."); }
public void DoCloseCache() { FwkInfo("DoCloseCache() Closing cache and disconnecting from" + " distributed system."); CacheHelper <TKey, TVal> .Close(); }