[#BloombergLP-bdlt-CalendarCache-invalidate] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/CalendarCache.adoc[CalendarCache]::invalidate :relfileprefix: ../../../ :mrdocs: Invalidate the calendar having the specified `calendarName` in this calendar cache, and remove it from the cache. If a calendar having `calendarName` is not present in this cache, this method has no effect. Return the number of calendars that were invalidated. Note that a calendar that has been invalidated in the cache remains valid to all outstanding references to it, obtained via earlier calls to the `getCalendar` and `lookupCalendar` methods, until all of those references have been destroyed. == Synopsis Declared in `<bdlt_calendarcache.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int invalidate(char const* calendarName); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#