ptarjan / node-cache

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

Separated variables for debug and stats updating #109

Open AlejandroAbad opened 5 years ago

AlejandroAbad commented 5 years ago

Added method 'countStats(bool)' that allows to gather hit/miss statistics without enabling console logging at the same time. Console logging is available as always by means fo the 'debug(bool)' method. Further docs updates are required.