Stone.js API
    Preparing search index...
    • Class decorator: enable caching with a single store, declaratively.

      @Cache({ driver: 'memory' }) registers the CacheServiceProvider and sets that store as the default. For multiple stores or richer setups, configure stone.cache via @Configuration() (or the imperative cacheBlueprint) instead.

      Type Parameters

      • T extends ClassType = ClassType

      Parameters

      • options: CacheOptions

        The store configuration (driver required).

      Returns ClassDecorator

      A class decorator.

      import { Cache } from '@stone-js/cache'

      @Cache({ driver: 'memory' })
      @StoneApp({ name: 'app' })
      export class Application {}