Make the expiration time configurable.

Follows from #264.

Use the same format as with the RateLimit period.