01JS↗LRU (Least Recently Used) CacheCache implementation with LRU eviction policyclass LRUCache { constructor(capacity) { this.capacity = capacity; this.cache = new Map();#cache#lruhard