User user = new User();
user.setId( 1 );
user.setName("ledis");
jedis.set( "user"+"_"+user.getId().toString() , JSON.toString( user ));
ledis
OperationEntity operationEntity = new OperationEntity();
operationEntity.setKey("id");
operationEntity.setClass(User.class);
operationEntity.setPrefix("user");
operationEntity.setSeparator("_");
StringCommands stringCommands = CommandsObjectFactory.getInstance.getRedisCommands(operationEntity);
User user = new User();
user.setId( 1 );
user.setName("ledis");
stringCommands.set( user );
5. 方便的script操作(设计完成,等待实现)
6. 完整 Object Relational Mapping(初步方案带完善)
7. 基于注解操作
@Mapper
@OperationList( operationsObject = {
@OperationsObject( name = "test" , operations = @Operation( key = "id" , mapKey = "appId" ) ) } )
public class TestEntity {
}