devsite/tools/jazzy/templates

FirebaseFirestore Framework Reference

MemoryEagerGCSetting

class MemoryEagerGCSetting : NSObject, NSCopying, MemoryGarbageCollectorSettings

Configures the SDK to use an eager garbage collector for memory cache.

Once configured, the SDK will remove any Firestore documents from memory as soon as they are not used by any active queries.

To use, create an instance using the initializer, then initialize MemoryCacheSettings with this instance. This is the default garbage collector, so alternatively you can use the default initializer of MemoryCacheSettings.

  • Creates an instance of MemoryEagerGCSettings.

    Declaration

    Swift

    init()

Get help quickly with Firebase support. Read our FAQs, Release notes, and guides, ask the community, then get direct support from the Firebase team.

Updated Oct 3, 2024

Get help quickly with Firebase support. Read our FAQs, Release notes, and guides, ask the community, then get direct support from the Firebase team.

Updated Oct 3, 2024

Discover Firebase, Google’s mobile and web app development platform that helps developers build apps and games that users will love.

Updated Feb 12, 2025