code_junkie

NHibernate.Caches.MemCache web.config for cache expiration time

Nov 12th, 2011
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <memcache>
  2. <memcached host="127.0.0.1" port="11211"/>
  3. <!-- or multiples -->
  4. </memcache>
  5.  
  6. <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
  7. <session-factory>
  8. <property name="show_sql">true</property>
  9. <property name="connection.provider" >NHibernate.Connection.DriverConnectionProvider</property>
  10. <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
  11. <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
  12. <!-- <property name="hibernate.cache.provider_class" value="NHibernate.Caches.MemCache.MemCacheProvider,NHibernate.Caches.MemCache" /> -->
  13. <property name="connection.connection_string">Data Source=stage2.ripple6.com;Initial Catalog=r6stage;User Id=sa;Password=mworld7650;Application Name=Hibernate;</property>
  14. <property name="connection.isolation">ReadCommitted</property>
  15. <property name="cache.use_second_level_cache">true</property>
  16. <property name="cache.provider_class">NHibernate.Caches.MemCache.MemCacheProvider,NHibernate.Caches.MemCache</property>
  17. <property name="default_schema" >r6stage.dbo</property>
  18. </session-factory>
  19.  
  20. </hibernate-configuration>
  21.  
  22. <property name="expiration" >YOUR_INTERVAL_IN_SECONDS</property>
  23.  
  24. NHibernate.Caches.MemCache.MemCacheClient: 20:57:55,762 DEBUG MemCacheClient:0 - using expiration of YOUR_INTERVAL_IN_SECONDS seconds
  25.  
  26. <property name="default_expiration" >YOUR_INTERVAL_IN_SECONDS</property>
Add Comment
Please, Sign In to add comment