Use LRU cache as default mechanism for caching in memory (#3979)
* Use LRU cache as default mechanism for caching in memory * Return null as what’s expected
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import {InMemoryCache} from './InMemoryCache';
|
||||
import {LRUCache} from './LRUCache';
|
||||
|
||||
export class InMemoryCacheAdapter {
|
||||
|
||||
constructor(ctx) {
|
||||
this.cache = new InMemoryCache(ctx)
|
||||
this.cache = new LRUCache(ctx)
|
||||
}
|
||||
|
||||
get(key) {
|
||||
|
||||
Reference in New Issue
Block a user