We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noticed while fixing #4
> const cache = require("./lib/tiny-lru.es6")(10); undefined > cache.set('1', 'a'); LRU { cache: { '1': { next: null, previous: null, value: 'a' } }, first: '1', last: '1', length: 1, max: 10, notify: false, onchange: [Function], update: [Function] } > cache.set('2', 'b'); LRU { cache: { '1': { next: '2', previous: null, value: 'a' }, '2': { next: null, previous: '1', value: 'b' } }, first: '2', last: '1', length: 2, max: 10, notify: false, onchange: [Function], update: [Function] } > cache.set('1', 'c'); LRU { cache: { '1': { next: null, previous: '2', value: 'c' }, '2': { next: '1', previous: '1', value: 'b' } }, first: '1', last: '2', length: 2, max: 10, notify: false, onchange: [Function], update: [Function] }
The previous value of '2' should be null in this case, and not '1'
previous
'2'
null
'1'
The text was updated successfully, but these errors were encountered:
b3dabf3
Adding tests for issue #5
41f3d8f
avoidwork
No branches or pull requests
Noticed while fixing #4
The
previous
value of'2'
should benull
in this case, and not'1'
The text was updated successfully, but these errors were encountered: