# RedisCtrl-Project **Repository Path**: eirui/RedisCtrl-Project ## Basic Information - **Project Name**: RedisCtrl-Project - **Description**: 应用用于操作Redis内存数据库,把数据库中的记录同步到Redis中,目的是加快应用程序操作效率. - **Primary Language**: Java - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2015-11-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #RedisCtrl-Project 应用名:RedisCtrl-Project 版本:Version 1.0 描述: 此应用用于操作Redis内存数据库,把accountcenter数据库的t_ticket中同时满足(未使用,未作废,未过期)条件 的券码记录,同步到Redis中,目的是加快验码效率. 功能: 1.同步可消费的券码至Redis中.当spring加载完DatabaseSynchronizationService这个Bean的时候 调用方法ticketSynchronization(),通过timer调用,间隔一分钟 2.异步更新券码状态到t_ticket表,读取全局唯一缓存Map中的待更新的券码,异步更新到数据库中.由spring定时器 执行,3分钟一次,降低数据库操作,以防止所表。 3.更新券码状态接口,位于RedisSynController中的updateTicketStatus()方法,只接受POST请求, 当接收到更新请求时候,先更新Redis中的记录,再把记录存放在全局唯一缓存Map中,让定时器异步更新到数据库中。 作者: 伍世浩 时间: 2015-11-4 10:51:42 Licensing ========= [![][license img]][license] This software is licensed under the terms in the file named "LICENSE" in this directory. The software uses the ANTLR package (http://www.antlr.org). Its license terms are in the file named "RIGHTS.antlr" in this directory. This product includes software developed by The Apache Software Foundation (http://www.apache.org/). The software uses the Cli, Logging and Beanutils packages from the Apache Commons project (http://commons.apache.org/). The license terms of these packages are in the file named "LICENSE.apache20" in this directory. The software uses the Google Guava Libraries (https://code.google.com/p/guava-libraries/). The license terms of these packages are in the file named "LICENSE.apache20" in this directory. [travis]:https://travis-ci.org/checkstyle/checkstyle/builds [travis img]:https://secure.travis-ci.org/checkstyle/checkstyle.png [appveyor]:https://ci.appveyor.com/project/checkstyle/checkstyle/history [appveyor img]:https://ci.appveyor.com/api/projects/status/rw6bw3dl9kph6ucc?svg=true [sonar]:http://nemo.sonarqube.org/dashboard/index/com.puppycrawl.tools:checkstyle [sonar img]:https://img.shields.io/sonar/http/nemo.sonarqube.org/com.puppycrawl.tools:checkstyle/tech_debt.svg?label=Sonarqube%20tech%20debt [codacy]:https://www.codacy.com/app/checkstyle/checkstyle [codacy img]:https://api.codacy.com/project/badge/3adf12d434314ba8b38277ea46d3c44b [coverage]:http://codecov.io/github/checkstyle/checkstyle?branch=master [coverage img]:http://codecov.io/github/checkstyle/checkstyle/coverage.svg?branch=master [license]:LICENSE [license img]:https://img.shields.io/badge/license-GNU%20LGPL%20v2.1-blue.svg [mavenbadge]:http://search.maven.org/#search|gav|1|g%3A%22com.puppycrawl.tools%22%20AND%20a%3A%22checkstyle%22 [mavenbadge img]:https://maven-badges.herokuapp.com/maven-central/com.puppycrawl.tools/checkstyle/badge.svg [versioneye]:https://www.versioneye.com/user/projects/5504ca834a1064774400049a [versioneye img]:https://www.versioneye.com/user/projects/5504ca834a1064774400049a/badge.svg [gitter]:https://gitter.im/checkstyle [gitter img]:http://img.shields.io/badge/gitter-JOIN%20CHAT-blue.svg [gitterpublic]:https://gitter.im/checkstyle/checkstyle [gitterpublic img]:https://badges.gitter.im/Join%20Chat.svg) [stackoverflow]:http://stackoverflow.com/questions/tagged/checkstyle [stackoverflow img]:https://img.shields.io/badge/stackoverflow-CHECKSTYLE-blue.svg [teamcity]:https://teamcity.jetbrains.com/viewType.html?buildTypeId=Checkstyle_IdeaInspectionsMaster [teamcity img]:https://img.shields.io/teamcity/http/teamcity.jetbrains.com/s/Checkstyle_IdeaInspectionsMaster.svg?label=TeamCity%20inspections