On Fri, Mar 9, 2012 at 3:34 PM, Marvin S. Addison <marvin.addi...@gmail.com> wrote: >> any way the default configuration is still the default serialization >> and you're fancy new faster stuff is an option? > > > Oh, yeah, absolutely. Here's a configuration snippet from the overlay I've > been testing with: > > <bean id="ticketRegistry" > class="org.jasig.cas.ticket.registry.MemcachedTicketRegistry"> > <constructor-arg index="0"> > <bean class="net.spy.memcached.spring.MemcachedClientFactoryBean" > p:servers="${memcached.servers}" > p:protocol="${memcached.protocol}" > p:hashAlg="${memcached.hashAlgorithm}" > p:locatorType="${memcached.locatorType}" > p:failureMode="${memcached.failureMode}" > p:transcoder-ref="kryoTranscoder" > /> > </constructor-arg> > <constructor-arg index="1" > value="${expiration.policy.tgt.validity_period}" /> > <constructor-arg index="2" > value="${expiration.policy.st.validity_period}" /> > </bean> > > <bean id="kryoTranscoder" > class="org.jasig.cas.ticket.registry.support.kryo.KryoTranscoder" > init-method="initialize"> > <!-- initialBufferSize --> > <constructor-arg index="0" value="8192" /> > </bean> > > <bean id="serialTranscoder" > class="net.spy.memcached.transcoders.SerializingTranscoder" > p:compressionThreshold="16834" /> > > Just omit the transcoder property on the MemcachedClientFactoryBean to get > the default.
Nicely done! Bill > > M > > -- > You are currently subscribed to cas-dev@lists.jasig.org as: wgt...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-dev -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev