Search in sources :

Example 1 with MemCacheTicketRegistry

use of org.apereo.cas.ticket.registry.MemCacheTicketRegistry in project cas by apereo.

the class MemcachedTicketRegistryConfiguration method ticketRegistry.

@Autowired
@Bean
public TicketRegistry ticketRegistry(@Qualifier("memcachedClient") final MemcachedClientIF memcachedClientIF) {
    final MemCacheTicketRegistry registry = new MemCacheTicketRegistry(memcachedClientIF);
    registry.setCipherExecutor(Beans.newTicketRegistryCipherExecutor(casProperties.getTicket().getRegistry().getMemcached().getCrypto()));
    return registry;
}
Also used : MemCacheTicketRegistry(org.apereo.cas.ticket.registry.MemCacheTicketRegistry) Autowired(org.springframework.beans.factory.annotation.Autowired) MemcachedClientFactoryBean(net.spy.memcached.spring.MemcachedClientFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

MemcachedClientFactoryBean (net.spy.memcached.spring.MemcachedClientFactoryBean)1 MemCacheTicketRegistry (org.apereo.cas.ticket.registry.MemCacheTicketRegistry)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 Bean (org.springframework.context.annotation.Bean)1