Jedis鏈接池的使用

所需jar:jedis-2.1.0.jar和commons-pool-1.5.4.jarredis Jedis操做步驟以下: 1->獲取Jedis實例須要從JedisPool中獲取; 2->用完Jedis實例須要返還給JedisPool; 3->若是Jedis在使用過程當中出錯,則也須要還給JedisPool;post 代碼以下:spa package com.ljq.utils; import
相關文章
相關標籤/搜索