ptarjan / node-cache

A simple in-memory cache for nodejs
BSD 2-Clause "Simplified" License
1.59k stars 214 forks source link

Why do you need ref count for cache object #82

Closed nassiharel closed 4 years ago

nassiharel commented 7 years ago

I think that the size variable is unnecessary because you can just do Object.keys(cache).length