It would be really great if there was some kind of wrapper class that makes the data returned from redis appear to be java.sql.ResultSet - then this could be closer to a drop-in replacement for a traditional SQL database connection.
So instead of calling get(1) get(2) as in the example, you would iterate over ResultSet objects, with functions delegating to the underlying redis interface. Basically RedisResultSetDecorator.
It would be really great if there was some kind of wrapper class that makes the data returned from redis appear to be
java.sql.ResultSet- then this could be closer to a drop-in replacement for a traditional SQL database connection.So instead of calling get(1) get(2) as in the example, you would iterate over
ResultSetobjects, with functions delegating to the underlying redis interface. Basically RedisResultSetDecorator.