/// <summary> /// Helper method that registers a soup with index specs. /// </summary> /// <param name="soupName"></param> /// <param name="cacheKey"></param> private void RegisterSoup(string soupName, string cacheKey) { RegisterMasterSoup(); if (!DoesCacheExist(soupName)) { IndexSpec[] indexSpecs = { new IndexSpec(CacheKey, SmartStoreType.SmartString) }; _smartStore.RegisterSoup(soupName, indexSpecs); } }
/// <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); }