@Test public void testIncrementVersion() { System.out.println(this.redisService.incrementVersion()); }
public long incrementVersion() { long currentVersion = (Long) this.redisTemplate.execute(new RedisCallback() { @Override public Object doInRedis(RedisConnection connection) throws DataAccessException { return connection.incr(Constant.TRUNK_VERSIONS.getBytes()); } }); return currentVersion; }
RedisService { public long incrementVersion() { long currentVersion = (Long) this.redisTemplate.execute(new RedisCallback() { @Override public Object doInRedis(RedisConnection connection) throws DataAccessException { return connection.incr(Constant.TRUNK_VERSIONS.getBytes()); } }); return currentVersion; } }
RedisService { public long incrementVersion() { long currentVersion = (Long) this.redisTemplate.execute(new RedisCallback() { @Override public Object doInRedis(RedisConnection connection) throws DataAccessException { return connection.incr(Constant.TRUNK_VERSIONS.getBytes()); } }); return currentVersion; }  }
RedisService { public long incrementVersion() { long currentVersion = (Long) this.redisTemplate.execute(new RedisCallback() { @Override public Object doInRedis(RedisConnection connection) throws DataAccessException { return connection.incr(Constant.TRUNK_VERSIONS.getBytes()); } }); return currentVersion; }  long getCurrentVersion(); long incrementVersion(); void report(Set<String> urls, Set<String> trunks, long version); Set<String> getTrunks(); void deleteTrunks(); }
RedisService { public long incrementVersion() { long currentVersion = (Long) this.redisTemplate.execute(new RedisCallback() { @Override public Object doInRedis(RedisConnection connection) throws DataAccessException { return connection.incr(Constant.TRUNK_VERSIONS.getBytes()); } }); return currentVersion; }  long getCurrentVersion(); long incrementVersion(); void report(Set<String> urls, Set<String> trunks, long version); Set<String> getTrunks(); void deleteTrunks();  }