# etsv5-redis-sync **Repository Path**: yunnet/etsv5-redis-sync ## Basic Information - **Project Name**: etsv5-redis-sync - **Description**: mysql sync redis - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-01-05 - **Last Updated**: 2022-06-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # etsv5-redis-sync 本程序是由事件和定时驱动,根据客户端传送的table, fields, condition字段,生成查询语句,从mysql中查询相应的记录,然后同步到redis中 ##### 客户端 * 请求结构(ObjCacheRequest) | 字段名 | 类型 | 说明 | |:-------:|:-------:|:-------:| | genTime | long | 产生时间 | | getObjectType | ObjCacheType | 对象类型 | | requestID | int | 请求ID | | userID | int | 用户编号 | | tableName | String | 表名 | | fields | String | 字段名 | | condition | String | 查询条件 | * 界面 ![客户端](https://github.com/yunnet/etsv5-redis-sync/blob/master/src/main/resources/client_pic.png "客户端") ##### 服务端 * 回复结构(ObjCacheResponse) | 字段名 | 类型 | 说明 | |:-------:|:-------:|:-------:| | genTime | long | 产生时间 | | getObjectType | ObjCacheType | 对象类型 | | receiptID | int | 回复ID | | userID | int | 用户编号 | | result | boolean | 返回结果是否同步成功 | * 界面 * ![服务端](https://github.com/yunnet/etsv5-redis-sync/blob/master/src/main/resources/server_pic.png "服务端")