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
The interface should expose set, not put, since put doesn't overwrite the keys, which is the entire point of an LRU cache.
Using put causes duplicate keys.
The text was updated successfully, but these errors were encountered:
Um, there's a "set" method exposed, isn't it?
Sorry, something went wrong.
Not in ILRUCache
export interface ILRUCache { put: (key: string, value: any) => void; get: (key: string, Entry: boolean) => any; }
https://github.com/TrueLink/lru-ts/blob/master/index.ts#L24
No branches or pull requests
The interface should expose set, not put, since put doesn't overwrite the keys, which is the entire point of an LRU cache.
Using put causes duplicate keys.
The text was updated successfully, but these errors were encountered: