mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 22:40:48 -07:00
feat: async cache.read()/write(), remove .has()
This commit is contained in:
Vendored
-4
@@ -42,10 +42,6 @@ export class LRU<T> implements Cache<T> {
|
||||
return value
|
||||
}
|
||||
|
||||
has (key: string): boolean {
|
||||
return !!this.cache[key]
|
||||
}
|
||||
|
||||
remove (key: string) {
|
||||
const node = this.cache[key]
|
||||
node.prev.next = node.next
|
||||
|
||||
Reference in New Issue
Block a user