Stone.js API
    Preparing search index...
    • Method decorator: invalidate cache after the method runs.

      By default it deletes the key Class.method:<hash(args)>. Pass tags to invalidate a group, or all: true to clear the store. The method always runs; invalidation happens on success. If the cache module is not enabled, the method runs normally (graceful no-op).

      Type Parameters

      • T extends Function = Function

      Parameters

      Returns MethodDecorator

      A method decorator.

      class ReportService {
      @CacheEvict({ tags: ['reports'] })
      async regenerate () { ... }
      }