@rbxts/a-plant-generator - v0.2.0
    Preparing search index...

    Interface GenerationCache<T>

    Minimal cache boundary for consumer-provided storage.

    interface GenerationCache<T> {
        clear(): void;
        delete(key: string): boolean;
        get(key: string): T | undefined;
        getSize(): number;
        set(key: string, value: T): void;
    }

    Type Parameters

    • T

    Implemented by

    Index
    • Removes a value and reports whether it existed.

      Parameters

      • key: string

      Returns boolean

    • Resolves a value and updates any implementation-specific recency state.

      Parameters

      • key: string

      Returns T | undefined

    • Returns the current entry count.

      Returns number

    • Inserts or replaces a value.

      Parameters

      • key: string
      • value: T

      Returns void