/// <summary> /// Create syncs soup if needed. /// </summary> /// <param name="store"></param> public static void SetupSyncsSoupIfNeeded(SmartStore.Store.SmartStore store) { if (store.HasSoup(Constants.SyncsSoup)) { return; } IndexSpec[] indexSpecs = { new IndexSpec(Constants.SyncType, SmartStoreType.SmartString) }; store.RegisterSoup(Constants.SyncsSoup, indexSpecs); }
/// <summary> /// Returns whether the specified cache exists. /// </summary> /// <param name="soupName"></param> /// <returns></returns> public bool DoesCacheExist(string soupName) { return(!String.IsNullOrWhiteSpace(soupName) && _smartStore.HasSoup(soupName)); }