vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function cache

    • Cache all results from this function in a local cache with a specified TTL in seconds

      Parameters

      • OptionalttlOrOptions: number | CacheOptions

        Time a cached entry is valid in seconds; any value of 0 or lower indicates the cache never not expires

      Returns (
          target: any,
          _name: string,
          descriptor: PropertyDescriptor,
      ) => PropertyDescriptor