Function Cached

  • Caches the result of a method

    Type Parameters

    • This

    Parameters

    • options: Cache = ...

      {Cache}

    Returns ((method, context) => ((...args) => any))

      • (method, context): ((...args) => any)
      • Parameters

        • method: BeanFunction
        • context: ClassMethodDecoratorContext<This, BeanFunction>

        Returns ((...args) => any)

          • (...args): any
          • Parameters

            • Rest ...args: any

            Returns any

    Decorator