Redis Plugin supported by SpringSource

  • Authors : Ted Naleid, Burt Beckwith, Brian Coles, Michael Cameron, Christian Oestreich, John Engelman, David Seiler, Jordon Saardchit, Florian Langenhahn, German Sancho, John Mulhern
  • License : Apache License 2.0
6 votes
Dependency :
compile ":redis:1.5.1"

Documentation Source Issues

Summary

The Redis plugin provides integration with a Redis datastore. Redis is a lightning fast 'data structure server'. The plugin enables a number of memoization techniques to cache results from complex operations in Redis.

Installation

grails install-plugin redis

Description

NOTE: The old redis plugin has been renamed to redis-gorm and is part of the grails-data-mapping project (https://github.com/SpringSource/grails-data-mapping). It now relies on this base redis plugin.

Redis is an advanced key-value NoSQL data store. It is similar to memcached except the dataset is not volatile. Like memcached, Redis can store string values, but it can also store lists, sets, and ordered sets. All these data types can be manipulated with atomic operations that push, pop, add and remove elements, perform server side union, intersection, difference between sets, and more. Redis also supports different kinds of sorting.

This project gives grails apps a pooled connection to a Redis instance and provides a number of helper methods and caching/memoization methods that can greatly speed up your application performance.

Full plugin documentation can be found at the github repository: https://github.com/grails-plugins/grails-redis

An introduction to using redis with groovy is here: http://naleid.com/blog/2010/12/28/intro-to-using-redis-with-groovy/

Ted Naleid gave a presentation at the 2011 gr8conf on redis + groovy + grails:

http://naleid.com/blog/2011/06/27/redis-groovy-and-grails-presentation-at-gr8conf-2011-and-gum/