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))); }
public static bool SetData(string sessionName, object ob, int expirationMinute = 0) { if (expirationMinute > 0) { ExpirationSolution.Add(sessionName, expirationMinute); } return(OCBSession.TrySet(sessionName, ob)); }