Implement properties for validUntil and cacheDuration.

Fixes #9.