/// <summary> /// Overriden constructor /// </summary> /// <param name="cacheName"></param> public CacheDAO(string cacheName) { if (string.IsNullOrEmpty(cacheName)) //generate random name { this.cacheName = string.Concat(Constants.DEFAULT_CACHE_NAME, Utils.Utils.generateUniqueID()); } else { this.cacheName = string.Concat(Constants.DEFAULT_CACHE_NAME, Utils.Utils.generateUniqueID()); } cacheHelper = MemcachedCacheHelper.getInstance(this.cacheName); }
/// <summary> /// Default constructor /// </summary> public CacheDAO() { this.cacheName = string.Concat(Constants.DEFAULT_CACHE_NAME, Utils.Utils.generateUniqueID()); cacheHelper = MemcachedCacheHelper.getInstance(cacheName); }