public static void SetAllLong(string key, object obj) { int t = 315360000; //365 * 24 * 60; //10年 MemcachedHelper_Old.Set(_DEPEND_, key, obj, t); }
/// <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); }
/// <summary> /// 默认Depend和时间 /// </summary> public static void Set(string key, object obj) { MemcachedHelper_Old.Set(_DEPEND_, key, obj, _EXP_); }
/// <summary> /// 默认Depend /// </summary> public static void Set(string key, object obj, int exp) { MemcachedHelper_Old.Set(_DEPEND_, key, obj, exp); }
/// <summary> /// 默认时间 /// </summary> public static void Set(string depend, string key, object obj) { MemcachedHelper_Old.Set(depend, key, obj, _EXP_); }