isaacs/node-lru-cache — pull request #4 by cblage (2012-04-01 17:58:50+00:00)
Title: Added support for weighed length

Hey, I thought it'd be useful to support weighed lengths on the LRU.

This way you can store heterogeneous pieces of information (in terms of size per item) in it and limit the amount of used memory with good precision.

I added tests for the the feature, and it's fully retrocompatible.