docs: public static void addTTLIndex(DBCollection collection, String field, int ttl) {
          if (ttl <= 0) {
              throw new IllegalArgumentException("TTL must be positive");
          }
          collection.createIndex(new BasicDBObject(field, 1), new BasicDBObject("expireAfterSeconds", ttl));
      }