API Reference

IFunctionCallResultCacheinterface

Service for creating, checking, and reading cached call results by context object and function-call identity (function name + arguments).

Overview

Caches function-call results to avoid unnecessary recomputation.

Declaration

export interface IFunctionCallResultCache {
  create(
    context: unknown,
    result: IFunctionCallResult,
  ): IFunctionCallResultCacheEntry;
  has(context: unknown, index: IFunctionCallIndex): boolean;
  get(
    context: unknown,
    index: IFunctionCallIndex,
  ): IFunctionCallResultCacheEntry | undefined;
}

Import

import type { IFunctionCallResultCache } from '@rs-x/core';

Members

3 members in this interface.

has
method
has(
  context: unknown,
  index: IFunctionCallIndex
): boolean

Parameters

Name
Type
Required
context
unknown
required
index
IFunctionCallIndex
required

Returns

boolean