[#BloombergLP-bdlt-DefaultTimetableCache] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::DefaultTimetableCache :relfileprefix: ../../ :mrdocs: This `struct` provides a namespace for functions that manage the lifetime of, and access to, a process‐wide default `bdlt::TimetableCache` object. The default cache is initialized by an explicit call to the `initialize` class method, and destroyed by the `destroy` class method. The default cache may be initialized and destroyed multiple times during the lifetime of a process. The lifetimes of the timetable loader and memory allocator supplied to `initialize` must extend beyond the following (matching) call to `destroy`. == Synopsis Declared in `<bdlt_defaulttimetablecache.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct DefaultTimetableCache; ---- == Description All methods of this `struct` are fully thread‐safe (see `bsldoc_glossary`). == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlt/DefaultTimetableCache/destroy.adoc[`destroy`] | Destroy the default `TimetableCache` object managed by this class. If the default cache is not in the initialized state, this method has no effect. Note that all addresses returned by earlier calls to `instance` are invalidated by this method. | xref:BloombergLP/bdlt/DefaultTimetableCache/initialize-02.adoc[`initialize`] | `initialize` overloads | xref:BloombergLP/bdlt/DefaultTimetableCache/instance.adoc[`instance`] | Return an address providing modifiable access to the default `TimetableCache` object managed by this class, if the default cache is in the initialized state, and 0 otherwise. The cache obtains timetables using the loader that was supplied to the `initialize` method. Note that the returned address is invalidated by a subsequent call to `destroy`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#