Fix up whitespace, docblocks, and formatting to project standards.
Correctly interpret either type of zero (float or int) as actually zero when applying cache TTLs.