Exemple #1
0
 /// <summary>
 /// 缓存-存储
 /// </summary>
 /// <param name="key">存储键值,如:/UserPassport/UserLoginInfo-25690,输入时,最好把产品名称跟上,不会重名</param>
 /// <param name="value">存储值</param>
 /// <param name="timespan">timespan</param>
 /// <returns></returns>
 public static bool Cache_Store(string key, object value, TimeSpan timespan)
 {
     return(CacheProvider.Store(key, value, timespan));
 }
Exemple #2
0
 /// <summary>
 /// 缓存-存储
 /// </summary>
 /// <param name="key">存储键值,如:/UserPassport/UserLoginInfo-25690,输入时,最好把产品名称跟上,不会重名</param>
 /// <param name="value">存储值</param>
 /// <param name="expiresAt">过期时间</param>
 /// <returns></returns>
 public static bool Cache_Store(string key, object value, DateTime expiresAt)
 {
     return(CacheProvider.Store(key, value, expiresAt));
 }
Exemple #3
0
 /// <summary>
 /// 缓存-存储
 /// </summary>
 /// <param name="key">存储键值,如:/UserPassport/UserLoginInfo-25690,输入时,最好把产品名称跟上,不会重名</param>
 /// <param name="value">存储值</param>
 /// <returns></returns>
 public static bool Cache_Store(string key, object value)
 {
     return(CacheProvider.Store(key, value));
 }