Pn.state.cache how much does it store?

Is there a limit and when does it get cleared?

Is there a limit and when does it get cleared?

No limit and never. That said for 0.13.0 I’m planning to add some control here, i.e. provide helpers that allow users to provide cache control such as keeping the only the most recently/frequently used items, providing a TTL, etc. If you’ve got ideas or requests around this I’d love to hear them.

2 Likes

Those features would be awesome!

1 Like