Search code examples
spring-data-redis

Cannot do Geo and Lrange in Spring Data Redis


Spring data redis doesn't seem to support the new geohash in Redis 3.2, also the template ops for list doesn't have a method to do lrange or essentially paginate the results.


Solution

  • The LRANGE command can be used via RedisOperations.opsForList().range(key, start, stop) or directly using RedisConnection.lRange(key, start, stop).

    Support for GEO operations will be part of the Ingalls release and is already available in the current 1.8.0 snapshots.