Using Age Validator
// 2 minutes TTL(time to live)
Validator<UsersRes> ageValidator = AgeValidator.create(TimeUnit.MINUTES.toMillis(2));
// Add to data source
.addSource(Sources.DISK_PERSISTENT, persistentDiskValidator)
Last updated
// 2 minutes TTL(time to live)
Validator<UsersRes> ageValidator = AgeValidator.create(TimeUnit.MINUTES.toMillis(2));
// Add to data source
.addSource(Sources.DISK_PERSISTENT, persistentDiskValidator)
Last updated