Redis Plugin supported by Pivotal

  • Tags: persistence, nosql, redis
  • Latest: 1.5.5
  • Last Updated: 28 May 2014
  • Grails version: 2.0.0 > *
  • 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:
runtime ":redis:1.5.5"

 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

Add the dependency for the latest version to BuildConfig.groovy.

Description

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/