예제 #1
0
 public static bool SetDataWithKey(string sessionName, object key, object data, int expirationMinute = 0)
 {
     if (expirationMinute > 0)
     {
         ExpirationSolution.Add(sessionName, expirationMinute);
     }
     return(OCBSession.TrySet(sessionName, new DataWidthKey(key, data)));
 }
예제 #2
0
 public static bool SetData(string sessionName, object ob, int expirationMinute = 0)
 {
     if (expirationMinute > 0)
     {
         ExpirationSolution.Add(sessionName, expirationMinute);
     }
     return(OCBSession.TrySet(sessionName, ob));
 }