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

    Parameters

    • Optional ttlOrOptions: number | CacheOptions

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

    Returns ((target, _name, descriptor) => PropertyDescriptor)

      • (target, _name, descriptor): PropertyDescriptor
      • Parameters

        • target: any
        • _name: string
        • descriptor: PropertyDescriptor

        Returns PropertyDescriptor