def get_cache_timeout() -> Optional[int]:
cool_off = get_cool_off()<EOL>if cool_off is None:<EOL><INDENT>return None<EOL><DEDENT>return int(cool_off.total_seconds())<EOL>
Return the cache timeout interpreted from settings.AXES_COOLOFF_TIME.

The cache timeout can be either None if not configured or integer of seconds if configured.

Notice that the settings.AXES_COOLOFF_TIME can be None, timedelta, or integer of hours,
and this function offers a unified _integer or None_ representation of that configuration
for use with the Django cache backends.