ptarjan / node-cache

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

Use variable to store size instead of recalculating it every time #25

Closed adambalogh closed 9 years ago

adambalogh commented 10 years ago

Use a variable to store the size, and update it, when an entry is added or deleted from the cache.