views:

140

answers:

1

I am trying to configure the hibernate.cfg.xml file to use memcache. I see the properties "cache.provider_class" and "cache.use_second_level_cache" however I do not see how I can add the server host/port.

+1  A: 

You'd set those properties in the <memcache> settings.

See this question for an example.

Ian Nelson
so inside the hibernate.cfg.xml but outside of the <hibernate-configuration> element?
CountCet
That doesn't work
CountCet
No, in the web.config / app.config
Ian Nelson
Just found that out now and it works.
CountCet