示例#1
0
        public static void SetAllLong(string key, object obj)
        {
            int t = 315360000; //365 * 24 * 60; //10年

            MemcachedHelper_Old.Set(_DEPEND_, key, obj, t);
        }
示例#2
0
        /// <summary>
        /// 长时间缓存
        /// </summary>
        public static void SetLong(string depend, string key, object obj)
        {
            int t = 31536000; //1年 = 10 * 365 * 24 * 60 * 60;

            MemcachedHelper_Old.Set(depend, key, obj, t);
        }
示例#3
0
 /// <summary>
 /// 默认Depend和时间
 /// </summary>
 public static void Set(string key, object obj)
 {
     MemcachedHelper_Old.Set(_DEPEND_, key, obj, _EXP_);
 }
示例#4
0
 /// <summary>
 /// 默认Depend
 /// </summary>
 public static void Set(string key, object obj, int exp)
 {
     MemcachedHelper_Old.Set(_DEPEND_, key, obj, exp);
 }
示例#5
0
 /// <summary>
 /// 默认时间
 /// </summary>
 public static void Set(string depend, string key, object obj)
 {
     MemcachedHelper_Old.Set(depend, key, obj, _EXP_);
 }