module documentation

Execution cache utils.

Copyright 2017-2025, Voxel51, Inc.

Function resolve_cache_info Resolves the cache key, store, and memory cache for a given function call, including scope-based keys.
Function _build_cache_key Undocumented
Function _get_cache_key_tuple Undocumented
Function _get_ctx_from_args Undocumented
Function _get_ctx_idx Undocumented
Function _get_function_id Undocumented
Function _get_scoped_cache_key_list Undocumented
Function _get_store_for_func Undocumented
Function _is_sample_dict Undocumented
Function _make_sample_dict Undocumented
Function _resolve_store_name Undocumented
Function _try_parse_date Undocumented
def resolve_cache_info(ctx, ctx_index, args, kwargs, key_fn, func, *, residency='transient', operator_scoped=False, user_scoped=False, prompt_scoped=False, jwt_scoped=False, collection_name=None, max_size=None): (source)

Resolves the cache key, store, and memory cache for a given function call, including scope-based keys.

Returns
A tuple(cache_key, store, memory_cache, skip_cache)
def _build_cache_key(cache_key_list): (source)

Undocumented

def _get_cache_key_tuple(ctx_index, args, kwargs, key_fn): (source)

Undocumented

def _get_ctx_from_args(args): (source)

Undocumented

def _get_ctx_idx(args): (source)

Undocumented

def _get_function_id(func): (source)

Undocumented

def _get_scoped_cache_key_list(ctx, operator_scoped=False, prompt_scoped=False, jwt_scoped=False, user_scoped=False): (source)

Undocumented

def _get_store_for_func(func, dataset_id=None, collection_name=None): (source)

Undocumented

def _is_sample_dict(value): (source)

Undocumented

def _make_sample_dict(sample): (source)

Undocumented

def _resolve_store_name(func): (source)

Undocumented

def _try_parse_date(value): (source)

Undocumented