5 Redis Specific Extensions - Reference Documentation
Authors: Graeme Rocher
Version: 5.0.8.RELEASE
5 Redis Specific Extensions
As well as all the regular capabilities offered by the GORM API there are a couple of additional GORM methods that take advantage of some key Redis features. The first one is the random method which will return a random instance of the domain class:def randomPerson = Person.random()
def randomPerson = Person.pop()