Stone.js API
    Preparing search index...

    Function resolveDecoratorKey

    • Resolve the cache key for a decorated method call: an explicit string, a function of the arguments, or the derived Class.method:<hash(args)> default.

      Parameters

      • key: CacheKeyOption

        The configured key option (if any).

      • self: any

        The instance the method ran on (for the class name).

      • methodName: string

        The decorated method's name.

      • args: unknown[]

        The call arguments.

      Returns string

      The resolved cache key.