appfabric

SQLCacheDependency and AppFabric Server

谁都会走 提交于 2019-11-29 19:12:01
问题 I have a situation where I need to replace our current file based cache dependency system with a new one. What I am looking at is moving towards using AppFabric for caching. I was wondering if the SQLDependencyCaching technique where the table notifies the application of data updates works with AppFabric as it does with ASP.NET built in caching? 回答1: There is no support within AppFabric caching for the SqlCacheDependency mechanism (or in fact for any kind of dependency). However, AppFabric 1

Starting AppFabric Cache Cluster automatically

守給你的承諾、 提交于 2019-11-29 17:47:16
问题 Is there a way to start the cache cluster automatically on system startup? I'm running it on a remote PC and when it gets restarted I have to remote into it and restart the cache cluster from Powershell using Start-CacheCluster, and would like to not have to do this. Thanks, James 回答1: Yes - if you change the startup mode of the AppFabric Caching Service from Manual to Automatic, then the service will start once the server has finished booting. (source: philippursglove.com) I suspect that as

Should a Repository return IEnumerable<T> , IQueryable<T> or List<T>?

随声附和 提交于 2019-11-29 16:56:24
问题 I'd like to make my application as flexible as possible, but not dig myself into a hole by making my Interface too specific. What is the best object type for a repository? IEnumerable, IQueryable, or List? The technologies I'm considering using are Azure App Fabric Caching Entity Framework 4.1 Possibly Windows Server AppFabric 回答1: I would say build your DAL using IQueryable, and pass it around, make sure your object contects lifetime is the request. This way you will get benefit of delayed

AppFabric vs System.Runtime.Caching

…衆ロ難τιáo~ 提交于 2019-11-29 07:33:27
TLDR version: For caching many small database tables that rarely change in my .NET4 WCF service. Which technology will be easiest to implement, easiest to maintain, and best to perform and why? Long version: I'm starting to work on a caching strategy for a new project. It used to be simple because there were fewer pre-packaged options (Enterprise Library for starters), but now with the .NET 4 framework and AppFabric being available, I'm having a harder time deciding on a solution. Basically, I want to cache a multitude of small (<100 rows with 2-4 columns) database tables that rarely change

AppFabric Caching - Proper use of DataCacheFactory and DataCache

陌路散爱 提交于 2019-11-28 16:50:53
问题 I am looking for the most performant way to arrange usage of the datacache and datacache factory for AppFabric caching calls, for between 400 and 700 cache gets per page load (and barely any puts). It seems that using a single static DataCacheFactory (or possibly a couple in a round-robin setup) is the way to go. Do I call GetCache("cacheName") for every DataCache object request, or do I make one static at the time DataCache factory is initialized and use that for all calls? Do I have to

MS Velocity vs Memcached for Windows?

房东的猫 提交于 2019-11-28 15:54:18
I've been paying some attention to Microsoft's fairly recent promoting of Velocity as a distributed caching solution that would compete with the likes of Memcached. I've been looking for a 64bit version of Memcached for Windows for some time now with no luck, and since everything about the ASP.Net MVC project I'm working on is 64bit, it doesn't make sense to use anything but 64bit. Now we're already hedging our bets with ASP.NET MVC in Beta (RTM soon hopefully), but StackOverflow doesn't seem to be doing too badly, so I have limited concerns there. But Velocity is still very much an unknown

Caching Solutions

自作多情 提交于 2019-11-28 04:41:00
Has anyone done a thorough comparison of AppFabric and NCache or AppFabric and ScaleOut? We are currently looking to implement either AppFabric, NCache or ScaleOut for distributed caching in geographically distant locations and I would like to know anyone's thoughts who has compared them side by side. I appreciate that many people use one or the other and tell me why their chosen solution is great but I am really looking for a comparison of the two products. Such things as what does AppFabric not do or not do well (if anything), partially from a features point of view but also from developer's

AppFabric caching examples using c# [closed]

青春壹個敷衍的年華 提交于 2019-11-27 18:01:15
I am currently researching the integration of AppFabirc caching into my .net c# application and looking for some code examples of such. Are there any open source or code samples available off AppFabric caching available that I can look at? PhilPursglove Cache Operations The first object to create when dealing with AppFabric caching is a DataCacheFactory . This can be created either with hard-coded configuration data that tells the factory how to contact the cache server, or with no configuration in which case it reads the configuration from your web.config/app.config file. My recommendation is

AppFabric: Could not contact the cache service

早过忘川 提交于 2019-11-27 11:57:41
Update: I have now implemented this properly. For more information see my blog post about it. I'm trying to use AppFabric with NHibernate as my second level cache provider but I'm getting the following error: ErrorCode:Initialization: Could not contact the cache service. Contact administrator and refer to product help documentation for possible reasons. I presume that the problem is with my configuration in web.config: <section name="dcacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition=

MS Velocity vs Memcached for Windows?

被刻印的时光 ゝ 提交于 2019-11-27 09:29:08
问题 I've been paying some attention to Microsoft's fairly recent promoting of Velocity as a distributed caching solution that would compete with the likes of Memcached. I've been looking for a 64bit version of Memcached for Windows for some time now with no luck, and since everything about the ASP.Net MVC project I'm working on is 64bit, it doesn't make sense to use anything but 64bit. Now we're already hedging our bets with ASP.NET MVC in Beta (RTM soon hopefully), but StackOverflow doesn't seem