From 1d71d1c38368453409a990e047c5112fa90fbea4 Mon Sep 17 00:00:00 2001 From: Andreas Holstenson Date: Thu, 15 Jun 2017 21:45:53 +0200 Subject: [PATCH] Added weightedSize to BoundlessCache --- cache/boundless.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cache/boundless.js b/cache/boundless.js index 5ffa819..4ceb636 100644 --- a/cache/boundless.js +++ b/cache/boundless.js @@ -35,6 +35,10 @@ class BoundlessCache { return this[DATA].values.size; } + get weightedSize() { + return this.size; + } + /** * Cache and associate a value with the given key. */