Skip to content

Cache per instance instead for whole prototype? #5

@denishristov

Description

@denishristov

Hello. I have noticed that caching a method like in the example below will cache the returned value for the whole prototype instead of for each instance of the class.

class Example {
  @MemoryCache()
  someMethod() {}
}

Is there a way to cache method calls per instance instead of caching them for the whole prototype?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions