node-cache icon indicating copy to clipboard operation
node-cache copied to clipboard

Adding support for array values

Open levani opened this issue 6 years ago • 2 comments

I had an use case where I wanted to store array as a value and later push/pop some items.

I think it would make sense to add methods like push, pop, unshift, etc, to work with array values directly from cache object, instead of getting the value, manipulating and then putting it back in cache.

I would like to discuss this in more details and send a PR if you think this will be useful in general.

levani avatar May 17 '18 07:05 levani

^

CodeLuca avatar Jan 26 '21 13:01 CodeLuca

Good idea. I’ll think about the possibility of implementing this in my similar package memory-cache-pro

IvanAdmaers avatar Jan 22 '22 16:01 IvanAdmaers