Allow expiry date in cachers to be specified as a DateTime object