示例#1
0
 public bool Add <T>(string key, T value, DateTime expiration,
                     IEnumerable <string> tags)
 {
     Precondition.Require(key, () => Error.ArgumentNull("key"));
     return(_provider.Add <T>(key, value, expiration, tags));
 }
示例#2
0
 public static bool Add <T>(this ITaggedCacheProvider provider,
                            string key, T value, DateTime expiration, params string[] tags)
 {
     return(provider.Add <T>(key, value, expiration, tags));
 }