SpringSource releases Spring Data for Redis 1.0.0
The flurry of SpringSource gifts just keeps on coming and this one went under the radar. The first stable version of Spring Data Redis, an open source library that allows for easy integration of Redis in Java applications, has arrived.
VMWare is an avid sponsor of Redis, the hugely popular NoSQL datastore that has found some big fans in recent times, including Github and StackOverflow. It has been lauded for its simplicity and high performance by some and this release will further the amount of commands at the developer's disposal.
Redis is accessed through an exhaustive list of commands (good luck knowing them all) and differs from other key-value stores through supporting additional datatypes from basic Strings. It also comes equipped to deal with several languages, from Haskell to Java.
Spring Data for Redis falls under the remit of the Spring Data umbrella project - Spring's pledge to promote the use of non-relational databases in Spring Environments that are portable and consistently performing at a high level. There's some treats within Spring Data for Redis, such as:
- Connection package as low-level abstraction across multiple Redis drivers/connectors (Jedis, JRedis, and RJC)
- Exception translation to Spring's portable Data Access exception hierarchy for Redis driver exceptions
- RedisTemplate that provides a high level abstraction for performing various redis operations, exception translation and serialisation support
- Pubsub support (such as a MessageListenerContainer for message-driven POJOs)
- JDK Collection implementations on top of Redis
- Atomic counter support classes
- Sorting and Pipelining functionality
- Dedicated support for SORT, SORT/GET pattern and returned bulk values
- Redis implementation for Spring 3.1 cache abstraction
Several serialisation methods are supported for out of the box (JDK, JSON, XML, toString). For more information on how to get started, check out the documentation and also this handy video below.