IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released KTX modules, we recommend that youmigrate your app to use KTX APIs from the main modules instead. For details, see theFAQ about this initiative.
LocalCacheSettings
public interfaceLocalCacheSettings
MemoryCacheSettings | Configures the SDK to use a memory cache. |
PersistentCacheSettings | Configures the SDK to use a persistent cache. |
Marker interface implemented by all supported cache settings.
PersistentCacheSettings andMemoryCacheSettings are the two only cache types supported by the SDK. Custom implementation is not supported.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.