node-ts-cache
node-ts-cache copied to clipboard
How to clear cache for a single item?
I found there is a function clear() and expect it to clear the full cache. But how to I clear the cache only for a single value?
If this is not integrated please consider it as a feature request.
myCache.clearItem('key');
@MickL what about unsetKey()?
I didnt see that method as it is not documented. Anyway I cant use it because it is set to private. Also it doesnt even seem to be a method that accepts a string:
@MickL Adding this improvement to the next minor version. Probably during next week.
Including this in the next release (v5).