[#BloombergLP-bdlt-TimetableCache-invalidate]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/TimetableCache.adoc[TimetableCache]::invalidate
:relfileprefix: ../../../
:mrdocs:

Invalidate and remove the named timetable from this cache&period;

== Synopsis

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

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

== Description

Invalidate the timetable having the specified `timetableName` in this timetable cache, and remove it from the cache&period; If a timetable having `timetableName` is not present in this cache, this method has no effect&period; Return the number of timetables that were invalidated&period; Note that a timetable that has been invalidated in the cache remains valid to all outstanding references to it, obtained via earlier calls to the `getTimetable` and `lookupTimetable` methods, until all of those references have been destroyed&period;

== Return Value

number of timetables invalidated

== Parameters

[cols="1,4"]
|===
| Name| Description
| *timetableName*
| name of the timetable to invalidate
|===


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