code: @Override
      public Object generate(SequenceGeneratorDiscriptor discriptor, Client<?> client, String dataType)
      {
          Jedis jedis = ((RedisClient) client).factory.getConnection();
  
          Long latestCount = jedis.incr(((RedisClient) client).getEncodedBytes(discriptor.getSequenceName()));
          if (latestCount == 1)
          {
              return discriptor.getInitialValue();
          }
          else
          {
              return (latestCount - 1) * discriptor.getAllocationSize();
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.generator.SequenceGenerator#generate(com.impetus.
  kundera.metadata.model.SequenceGeneratorDiscriptor,
  com.impetus.kundera.client.Client, java.lang.Object)