> servers. While I might end up not implementing caching for the LDAP queries,
> could I trouble you to share your configuration if only so I can understand
> how it's supposed to work :)?

Here's the cache configuration we use for our custom resolver:

  <bean id="principalCache"
    class="org.springframework.cache.ehcache.EhCacheFactoryBean"
    p:cacheName="PrincipalCache"
    p:eternal="false"
    p:overflowToDisk="false"
    p:maxElementsInMemory="100"
    p:timeToLive="5"
    p:timeToIdle="5">
    <property name="cacheManager">
      <bean class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
/>
    </property>
  </bean>

Honestly we haven't measured the cache miss ratio in production under
load, but I'm certain it helps reduce the number of queries against
our directories while in the auth pipeline.

M

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to