Enterprise Single Sign-On for All

Infinispan Ticket Registry

Infinispan integration is enabled by including the following dependency in the WAR overlay:

1
2
3
4
5
<dependency>
     <groupId>org.apereo.cas</groupId>
     <artifactId>cas-server-support-infinispan-ticket-registry</artifactId>
     <version>${cas.version}</version>
</dependency>

To see the relevant list of CAS properties, please review this guide.

Infinispan is a distributed in-memory key/value data store with optional schema. It can be used both as an embedded Java library and as a language-independent service accessed remotely over a variety of protocols. It offers advanced functionality such as transactions, events, querying and distributed processing.

Cache instance can be integrated with

  • JCache (JSR-107)
  • Hibernate second-level Cache
  • WildFly modules
  • Apache Lucene directory backed by Infinispan
  • Directory Provider for Hibernate Search
  • Spring Cache 3.x and 4.x
  • CDI
  • OSGi
  • Apache Spark
  • Apache Hadoop

There are a variety of cache stores available to choose from, some of which are:

  • JPA/JDBC Store
  • Single File & Soft-Index
  • REST
  • Cassandra
  • Redis
  • HBase
  • MongoDB

See the full list of implementations.

Distributed Cache

A sample infinispan.xml configuration file:

1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8"?>
<infinispan xsi:schemaLocation="urn:infinispan:config:8.2 http://www.infinispan.org/schemas/infinispan-config-8.2.xsd"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:infinispan:config:8.2">

   <cache-container default-cache="cas">
       <jmx duplicate-domains="true" />
       <local-cache name="cas" />
   </cache-container>
</infinispan>

Refer to the Infinispan documentation to learn more about cache configuration, and how to manage the eviction policy for various ticket types.