(Redis介绍:略)
Redis-win-x64位程序的下载地址(缺分,分多的可以给我贡献点):
http://download.csdn.net/download/qq_33601179/10165429
linux下的安装百度一大堆,也不贴出来了,毕竟我没用过,随便贴一篇也不太好。
(1)win下安装redis
非常简单,只需要cmd命令行工具运行代码,吧服务程序跑起来就OK,代码为:(亲测有效)
redis-server.exe redis.windows.conf
具体的安装步骤,请看博客:
http://blog.csdn.net/jinwufeiyang/article/details/52156817
(2)简单使用Redis
这个我也不废话,直接看下面这个博客:(亲测有效)
http://www.runoob.com/redis/redis-java.html
(3)性能优化
Redis连接池,Redis本身就自带连接池。(亲测有效)
推荐将所需要的配置参数写到配置文件中,下面附上我封装的一个Redis连接池的类,由三个部分组成:类BaseRedis(使用Redis连接池:JedisPool)、类PropertiesUtils(用于读取配置文件)、redis.properties(参数配置文件)