public Object get(String key) throws Exception {
        byte[] data = null;
        Jedis jedis = null;
        try {
            jedis = this.jedisPool.getResource();
            long begin = System.currentTimeMillis();
            data = jedis.get(SafeEncoder.encode(key));
            long end = System.currentTimeMillis();
            logger.info("get key:" + key + ", spends: " + (end - begin) + "ms");
        } catch (Exception e) {
            // do jedis.quit() and jedis.disconnect()
            this.jedisPool.returnBrokenResource(jedis);
            throw e;
        } finally {
            if (jedis != null) {
                this.jedisPool.returnResource(jedis);
            }
        }

        return this.deserialize(data);
    }
public Object get ( String key ) throws Exception { byte [ ] data = null ; Jedis jedis = null ; try { jedis = this . jedisPool . getResource ( ) ; long begin = System . currentTimeMillis ( ) ; data = jedis . get ( SafeEncoder . encode ( key ) ) ; long end = System . currentTimeMillis ( ) ; logger . info ( "get key:" + key + ", spends: " + ( end - begin ) + "ms" ) ; } catch ( Exception e ) { this . jedisPool . returnBrokenResource ( jedis ) ; throw e ; } finally { if ( jedis != null ) { this . jedisPool . returnResource ( jedis ) ; } } return this . deserialize ( data ) ; }
get value<br>
return null if key did not exist

@param key

@return

@throws Exception