[#BloombergLP-baltzo-DefaultZoneinfoCache-setDefaultCache] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/DefaultZoneinfoCache.adoc[DefaultZoneinfoCache]::setDefaultCache :relfileprefix: ../../../ :mrdocs: Set the address of the default `ZoneinfoCache` object to the specified `cache`. Return the address of the default cache object that was set by a previous call to this method, or 0 if no call to this method was previously executed. The behavior is undefined unless (1) `cache` remains valid until the last operation is performed on this process's default cache, or a subsequent call to `setDefaultCache`, and (2) this method is _not_ called from one thread while another thread is attempting to access the default time zone cache instance (i.e., this method is _not_ thread‐safe). Note that this method is intended for use _only_ by the _owner_ of `main` (and for testing purposes) where the caller affirmatively takes responsibility for the behavior of all clients of the default time zone cache. == Synopsis Declared in `<baltzo_defaultzoneinfocache.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/baltzo/ZoneinfoCache.adoc[ZoneinfoCache]* setDefaultCache(xref:BloombergLP/baltzo/ZoneinfoCache.adoc[ZoneinfoCache]* cache); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#