devsite/tools/jazzy/templates

FirebaseFirestore Framework Reference

FIRMemoryLRUGCSettings


@interface FIRMemoryLRUGCSettings
    : NSObject <NSCopying, FIRMemoryGarbageCollectorSettings>

Configures the SDK to use a least-recently-used garbage collector for memory cache.

Once configured, the SDK will attempt to remove documents that are least recently used in batches, if the current cache size is larger than the given target cache size. Default cache size is 100MB.

To use, create an instance using one of the initializers, then initialize MemoryCacheSettings with this instance.

  • Creates an instance of FIRMemoryLRUGCSettings, with default target cache size 100MB. The SDK will run garbage collection if the current cache size is larger than 100MB.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Creates an instance of FIRMemoryLRUGCSettings, with a custom target cache size. The SDK will run garbage collection if the current cache size is larger than the given size.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSizeBytes:(nonnull NSNumber *)size;

Reach potential customers with online ads.

Updated Feb 20, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Sep 26, 2024

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Feb 11, 2021