Now we are moving our existing web application to Azure. Azure caching is very slow .
Is there any alternative caching mechanism (better than Azure Caching) for multiple instances in Azure? For example, storing caching in Azure Storage or Azure SQL.
Thanks for your input!
Added
public class AzureCacheService : ICacheService { readonly DataCacheFactory _factory = new DataCacheFactory(); private readonly DataCache _cache; public AzureCacheService() { _cache = _factory.GetDefaultCache(); } public object Get(string key) { return _cache.Get(key); } public void Insert(string key, object obj) { if (obj != null) { _cache.Put(key, obj, new TimeSpan(3, 0, 0)); } } public void Remove(string key) { _cache.Remove(key); } } *** Accessing *** IoC.Resolve<ICacheService>().Insert(key, MyObject); IoC.Resolve<ICacheService>().Remove(key);
Win
source share