Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

cache trong mvc

DataSet ds = System.Web.HttpContext.Current.Cache["CacheName"] as DataSet;
if (ds == null)
{
ds = CategoryDB.GetLastestNews(CategoryID, NoOfNews, LanguageCode);
System.Web.HttpContext.Current.Cache.Insert("CacheName", ds, null, DateTime.MaxValue, TimeSpan.FromMinutes(15));
}
Comment

cache trong mvc

System.Web.HttpContext.Current.Cache.Insert("CacheName", bien, null, DateTime.MaxValue, TimeSpan.FromMinutes(15));
Comment

PREVIOUS NEXT
Code Example
Csharp :: binding on button c# 
Csharp :: how to create a blazor client-side application in a command-line interface 
Csharp :: c# out parameter 
Csharp :: #dictionery in c 
Csharp :: irrrtate throught an matrix c# 
Csharp :: unity line renderer opacity 
Csharp :: pick random point inside box collider unity 
Csharp :: Show empty message in data table angular material, If no data found 
Csharp :: c# split multiple options 
Csharp :: cant see my classes in inspector 
Csharp :: c# lambda group by multiple columns 
Csharp :: how to iterate string in c# 
Csharp :: drawing default serializedproperty unity 
Csharp :: c# string to binary 
Csharp :: c# builder pattern fluent example 
Csharp :: How to change ListBox selection background color 
Csharp :: DataGridView ComboBox column selection changed event 
Csharp :: c# clear panel 
Csharp :: c# read excel file columns using epplus 
Csharp :: c# copy all files in directory and subdirectories 
Csharp :: unity how to check serialized enum 
Csharp :: c# generate random string 
Csharp :: c# delete item from list 
Csharp :: list c# 
Csharp :: c# object add property 
Csharp :: c# double 
Csharp :: one line condition c# 
Csharp :: blazor use static json files 
Csharp :: Delayed respawn timer 
Csharp :: C# wpf show hidden window 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =