Skip to main content

StorageInstanceManager

Manager for caching and managing storage instances.

This class centralizes the caching logic for all storage types (Dataset, KeyValueStore, RequestQueue) and provides a unified interface for opening and managing storage instances.

Index

Methods

__init__

  • __init__(): None
  • Returns None

clear_cache

  • clear_cache(): None
  • Clear all cached storage instances.


    Returns None

open_storage_instance

  • async open_storage_instance(*, id, name, configuration, client_opener): T
  • Open a storage instance with caching support.


    Parameters

    • keyword-onlyid: str | None

      Storage ID.

    • keyword-onlyname: str | None

      Storage name.

    • keyword-onlyconfiguration: Configuration

      Configuration object.

    • keyword-onlyclient_opener: ClientOpener

      Function to create the storage client.

    Returns T

remove_from_cache

  • remove_from_cache(storage_instance): None
  • Remove a storage instance from the cache.


    Parameters

    • storage_instance: Storage

      The storage instance to remove.

    Returns None