Skip to main content

_StorageCache

Cache for storage instances.

Index

Methods

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

Properties

by_alias

by_alias: defaultdict[type[Storage], defaultdict[str, defaultdict[Hashable, Storage]]]

Cache for storage instances by alias. Example: by_alias[Dataset]['some_alias']['some_additional_cache_key']

by_id

by_id: defaultdict[type[Storage], defaultdict[str, defaultdict[Hashable, Storage]]]

Cache for storage instances by ID. Example: by_id[Dataset]['some_id']['some_additional_cache_key'].

by_name

by_name: defaultdict[type[Storage], defaultdict[str, defaultdict[Hashable, Storage]]]

Cache for storage instances by name. Example: by_name[Dataset]['some_name']['some_additional_cache_key']