title: NHibernate.Caches.MemCache web.config for cache expiration time
body: <p>I'm migrating to Nhibernate 2.0 GA but have some trouble with setting cache expirations in memcached provider.</p>
  
  <p>I see in the NHibernate.Caches.MemCache sources that there is a property for expiration and a default value for 300 seconds. </p>
  
  <p>There are also properties for cache regions but the config section handler does not seem to map them.</p>
  
  <p>Is there some other way cache expiration times are set that is not provider specific --</p>
  
  <p>Here is functional web config section (without an expiration settings obviously).</p>
  
  <pre><code>&lt;memcache&gt;
      &lt;memcached host="127.0.0.1" port="11211"/&gt;
      &lt;!-- or multiples --&gt;
  &lt;/memcache&gt;
  
  &lt;hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"&gt;
      &lt;session-factory&gt;
          &lt;property name="show_sql"&gt;true&lt;/property&gt;
          &lt;property name="connection.provider" &gt;NHibernate.Connection.DriverConnectionProvider&lt;/property&gt;
          &lt;property name="dialect"&gt;NHibernate.Dialect.MsSql2000Dialect&lt;/property&gt;
          &lt;property name="connection.driver_class"&gt;NHibernate.Driver.SqlClientDriver&lt;/property&gt;
                  &lt;!--    &lt;property name="hibernate.cache.provider_class" value="NHibernate.Caches.MemCache.MemCacheProvider,NHibernate.Caches.MemCache" /&gt; --&gt;
          &lt;property name="connection.connection_string"&gt;Data Source=stage2.ripple6.com;Initial Catalog=r6stage;User Id=sa;Password=mworld7650;Application Name=Hibernate;&lt;/property&gt;
          &lt;property name="connection.isolation"&gt;ReadCommitted&lt;/property&gt;
          &lt;property name="cache.use_second_level_cache"&gt;true&lt;/property&gt;
          &lt;property name="cache.provider_class"&gt;NHibernate.Caches.MemCache.MemCacheProvider,NHibernate.Caches.MemCache&lt;/property&gt;
          &lt;property name="default_schema" &gt;r6stage.dbo&lt;/property&gt;
      &lt;/session-factory&gt;
  
  &lt;/hibernate-configuration&gt;
  </code></pre>