[#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&period; If a calendar having `calendarName` is not present in this cache, this method has no effect&period; Return the number of calendars that were invalidated&period; 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&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;calendarcache&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
invalidate(char const* calendarName);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
