Пример #1
0
        /// <summary>
        /// 设置模型到缓存
        /// </summary>
        /// <param name="useridId"></param>
        /// <param name="storeInfo"></param>
        public void SetStoreInfo(string useridId, StoreViewModel storeInfo)
        {
            useridId.CheckNotNullOrEmpty(nameof(useridId));
            storeInfo.CheckNotNull(nameof(storeInfo));

            _cache.Add(CacheKeySupplier.StoreModelCacheKey(useridId), storeInfo);
        }