@Override public DataType type(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline( connection.newJedisResult(connection.getRequiredPipeline().type(key), JedisConverters.stringToDataType())); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().type(key), JedisConverters.stringToDataType())); return null; } return JedisConverters.toDataType(connection.getJedis().type(key)); } catch (Exception ex) { throw connection.convertJedisAccessException(ex); } }
@Override public DataType type(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline( connection.newJedisResult(connection.getRequiredPipeline().type(key), JedisConverters.stringToDataType())); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().type(key), JedisConverters.stringToDataType())); return null; } return JedisConverters.toDataType(connection.getJedis().type(key)); } catch (Exception ex) { throw connection.convertJedisAccessException(ex); } }
@Override public DataType type(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline( connection.newJedisResult(connection.getRequiredPipeline().type(key), JedisConverters.stringToDataType())); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().type(key), JedisConverters.stringToDataType())); return null; } return JedisConverters.toDataType(connection.getJedis().type(key)); } catch (Exception ex) { throw connection.convertJedisAccessException(ex); } }