Skip to content

1.0.5

Compare
Choose a tag to compare
@angelnikolov angelnikolov released this 23 Apr 18:07
· 29 commits to master since this release

Exposed an additional ctx (Context) parameter for all storage strategy methods. For ex. - abstract add(entity: ICachePair<any>, cacheKey: string, ctx?: any): void;
With that, you get access to the instance which called the decorated method. This is useful for stateful operations or properly caching when using multiple instances of the same class as described here.