I am using the indexed expire after second ,everything seems fine for me ,but nothing happens after 30 seconds is there more I should do or am I doing something wrong
public class ConfirmationToken {
@Id
private String tokenid;
private String confirmationToken;
@Field
@Indexed(name="createdDate", expireAfterSeconds=3600)
private Date createdDate;
private Entity user;
public ConfirmationToken() {
}
public ConfirmationToken(Entity user) {
this.user = user;
createdDate = new Date();
confirmationToken = UUID.randomUUID().toString();
}
// Getters and Setter
}