using System;
using System.Data;
using System.Linq;
using System.Web;
using System.Runtime;
using System.Runtime.Caching;
using Microsoft.Practices.EnterpriseLibrary.Caching;
using Microsoft.Practices.EnterpriseLibrary.Common;
using System.Diagnostics;
public class hi : IDisposable
{
ObjectCache cache = MemoryCache.Default;
public void set(string key, object value, CacheItemPolicy Policy)
{
cache.Set(key, value, Policy);
}
void IDisposable.Dispose()
{
}
}
public class IMyCache : IDisposable
{
public void Dispose()
{
}
}
protected void Button1_Click(object sender, EventArgs e)
{
//using (hi h = new hi())
//{
// h.set("Key", "VALUE", null);
//}
No comments:
Post a Comment