コード例 #1
0
        public bool CanEdit(Guid listId)
        {
            var canEdit = (bool?)cacheService.Get(CanEditCacheKey(listId), CacheScope.Context | CacheScope.Process);

            if (canEdit == null)
            {
                canEdit = listService.CanEdit(listId);
                cacheService.Put(CanEditCacheKey(listId), canEdit, CacheScope.Context | CacheScope.Process, new string[] { }, CacheTimeOut);
            }
            return((bool)canEdit);
        }