angelnikolov / ts-cacheable

Observable/Promise Cache Decorator
https://npmjs.com/package/ts-cacheable
ISC License
340 stars 42 forks source link

Ability to pass a custom JSON.stringify replacer #53

Closed SansDK closed 4 years ago

SansDK commented 5 years ago

Hi there,

I'm currently having an issue because of a circular structure in an object from another library (which should be cached). This is easy to fix I could pass a stringify replacer, because I could then ignore the recursive property.

I couldn't find documentation on how to do this currently and I also didn't see an existing issue on this, so I made a new one.

Any help would be appreciated. Thanks!

angelnikolov commented 5 years ago

@SansDK I actually had a branch on this but got rid off it for some reason. Will take a look over the weekend, thanks :)

SansDK commented 5 years ago

Great, thanks for the quick reply!

SansDK commented 4 years ago

Solved by #55 🎉