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 you
migrate your app to use KTX APIs from the main modules instead. For details, see the
FAQ about this initiative.
Stay organized with collections
Save and categorize content based on your preferences.
LocalCacheSettings
public interface LocalCacheSettings
Marker interface implemented by all supported cache settings.
PersistentCacheSettings
and MemoryCacheSettings
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 the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.
[null,null,["Last updated 2025-07-21 UTC."],[],[],null,["LocalCacheSettings\n\n\n```\npublic interface LocalCacheSettings\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[MemoryCacheSettings](/docs/reference/android/com/google/firebase/firestore/MemoryCacheSettings), [PersistentCacheSettings](/docs/reference/android/com/google/firebase/firestore/PersistentCacheSettings) \n\n*** ** * ** ***\n\nMarker interface implemented by all supported cache settings.\n\n[PersistentCacheSettings](/docs/reference/android/com/google/firebase/firestore/PersistentCacheSettings) and [MemoryCacheSettings](/docs/reference/android/com/google/firebase/firestore/MemoryCacheSettings) are the two only cache types supported by the SDK. Custom implementation is not supported."]]