/**
  * 通过key判断值得类型
  *
  * @param key
  * @return
  */
 public String type(String key) {
   ShardedJedis jedis = null;
   String res = null;
   try {
     jedis = pool.getResource();
     res = jedis.type(key);
   } catch (Exception e) {
     pool.returnBrokenResource(jedis);
     e.printStackTrace();
   } finally {
     returnResource(pool, jedis);
   }
   return res;
 }