-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: MemCache Provider
PostPosted: Thu May 17, 2007 10:49 am 
Regular
Regular

Joined: Fri May 05, 2006 11:54 am
Posts: 51
Hi,

I have a question about the using memcached and the NHibernate.Caches.MemCache provider.

I have installed the memcached wind32 service and started it.

I have set up the file by adding the following keys to my web.config:

Code:
<section name="memcache" type="NHibernate.Caches.MemCache.MemCacheSectionHandler,NHibernate.Caches.MemCache" />

Code:
<memcache>
<memcached host="10.77.1.160" port="11211" />
/memcache>


And the following key to my Castle configuration:

Code:
<item key="hibernate.cache.provider_class">NHibernate.Caches.MemCache.MemCacheProvider,NHibernate.Caches.MemCache</item>


I have used the SysCache before and there was no extra configuration required.

Is there anything in application start up that I need to do in order to cache my NHibernate objects??

Can anyone clarify if there are more steps to this procedure?

Paul


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 10:26 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
That looks about right to me, compared to the app.config file used in the unit tests.

Are you getting errors?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 11:05 am 
Regular
Regular

Joined: Fri May 05, 2006 11:54 am
Posts: 51
No all works fine it would seem.

Just curious.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.