Configuring memcached

Original Post Ulrik Andersson's Avatar

Ulrik Andersson

19 Mar, 2010 03:56 PM via web

Hi,

I'm just getting started with NHibernate and Fluent NHibernate. I've seen that you can use Memcached as a second level cache with NHibernate which seems like a nice and poweful combo! However I am struggeling to find some sample code of how to configure the sessionfactory. It'd be nice if someone could provide me with some help. So far I've downloaded the memcached provider and added it to the sessionfactoryconfiguration like this "Cache(c => c.UseQueryCache().ProviderClass<NHibernate.Caches.MemCache.MemCacheProvider>())". But I think there's some more configuration to be done.

    Reply to this discussion

    Preview Comments are parsed with Markdown. Help with syntax

    Attached Files

      You can attach files up to 10MB

      Ten divided by two is what?

      Recent Discussions

      05 Jul, 2010 10:29 PM
      05 Jul, 2010 12:45 PM
      05 Jul, 2010 12:42 PM
      05 Jul, 2010 12:17 PM
      05 Jul, 2010 12:12 PM

       

      03 Jul, 2010 12:26 AM
      02 Jul, 2010 02:17 PM
      02 Jul, 2010 08:18 AM
      02 Jul, 2010 12:20 AM
      01 Jul, 2010 10:14 PM