import redis.clients.jedis.Jedis; /** * 启动Redis服务后,运行此程序 * * @author ewf_momo * @version 2013-5-4 */ public class testRedis { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Jedis jedis = new Jedis("127.0.0.1");//默认访问redis的6379端口 jedis.del(keys);// 删数据 jedis.set("name", "I am ewf_momo!!");//设计数据 String cache = jedis.get("name");//取数据 System.out.println(cache); } }
Redis_Demo01
Redis_Demo01
猜你喜欢
转载自ewf-momo.iteye.com/blog/1859844
今日推荐
周排行