Java+MySQL+redis缓存

上传者: wang_shuyu | 上传时间: 2019-12-21 21:35:34 | 文件大小: 2.37MB | 文件类型: zip
案例中数据来自MySQL数据库,对查询出来的数据缓存到redis,redis缓存工具可以将缓存string,bean,list,map等类型,代码中有详细的注释,而且还将要缓存的数据进行了序列化,大家可以借鉴,进而更改成自己想要的格式。数据库配置使用了xml和propertis两种配置方式,redis缓存采用非切片和切片两种配置,大家可以自选择

文件下载

资源详情

[{"title":"( 41 个子文件 2.37MB ) Java+MySQL+redis缓存","children":[{"title":"RedisDemo","children":[{"title":".project <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"c3p0.properties <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"c3p0-config.xml <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"c3po","children":[{"title":"bean","children":[{"title":"User.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"SerializeUtil.class <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"C3P0Util.class <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"RedisUtil.class <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"JdbcUtil.class <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"ShardedRedisUtil.class <span style='color:#111;'> 5.54KB </span>","children":null,"spread":false}],"spread":true},{"title":"dao","children":[{"title":"UserDaoImpl.class <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"Dao.class <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"UserDao.class <span style='color:#111;'> 286B </span>","children":null,"spread":false},{"title":"DaoImpl.class <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"Test2.class <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"Test.class <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"redis.properties <span style='color:#111;'> 138B </span>","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 598B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"c3p0.properties <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"c3p0-config.xml <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"c3po","children":[{"title":"bean","children":[{"title":"User.java <span style='color:#111;'> 623B </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"JdbcUtil.java <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"RedisUtil.java <span style='color:#111;'> 6.21KB </span>","children":null,"spread":false},{"title":"SerializeUtil.java <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"ShardedRedisUtil.java <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false},{"title":"C3P0Util.java <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false}],"spread":true},{"title":"dao","children":[{"title":"UserDaoImpl.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"Dao.java <span style='color:#111;'> 185B </span>","children":null,"spread":false},{"title":"UserDao.java <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"DaoImpl.java <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"Test.java <span style='color:#111;'> 948B </span>","children":null,"spread":false},{"title":"Test2.java <span style='color:#111;'> 460B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"redis.properties <span style='color:#111;'> 138B </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 705B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"commons-pool2-2.0.jar <span style='color:#111;'> 104.55KB </span>","children":null,"spread":false},{"title":"mchange-commons-java-0.2.10.jar <span style='color:#111;'> 592.18KB </span>","children":null,"spread":false},{"title":"commons-lang-2.5.jar <span style='color:#111;'> 272.65KB </span>","children":null,"spread":false},{"title":"jedis-2.7.2.jar <span style='color:#111;'> 314.99KB </span>","children":null,"spread":false},{"title":"c3p0-0.9.5.1.jar <span style='color:#111;'> 486.11KB </span>","children":null,"spread":false},{"title":"commons-dbutils-1.6.jar <span style='color:#111;'> 76.03KB </span>","children":null,"spread":false},{"title":"mysql-connector-java-5.1.16-bin.jar <span style='color:#111;'> 768.05KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • baird :
    下载了一个,很好用,谢谢
    2019-07-13
  • Ccool5188 :
    不错不错不错
    2019-06-07
  • ythaichan :
    下载后。忘了放哪里了。说要评价才能下载?!
    2018-11-15
  • xiaoqin_yan :
    很好,谢谢分享
    2018-09-27
  • HackHorse :
    很不错,学习了
    2018-08-27

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明