Redis-Data is designed to make saving your data in redis as easy as possible. It uses the hash feature in redis along with GSON to make your development environment a lot easier to read.
For an example see here
Each document being saved is of type RedisDocument (which can be managed with RedisDataManager)
Data is read from reflection hence below you are implementing getType
To skip a field from being read you can mark it transient
The RedisDocument alone is abstract, so you will have to implement a few functions:
public abstract String getNamespace(); public abstract String getId(); public abstract Class<?> getType();
The class comes with four data functions save, load, delete & expire. When you load a document you can check if it's new with isNew()
You can serialize & deserialize specific fields differently by overriding deserialize & serialize
<dependency> <groupId>com.birthdates</groupId> <artifactId>redis-data</artifactId> <version>1.0.6</version> </dependency>