API Reference > bentleyjs-core > Collections > LRUCache > shift shift Method Purge the least recently used (oldest) entry from the cache. shift(): [K, V] | undefined Returns - [K, V] | undefined The removed entry or undefined if the cache was empty. Defined in core/bentley/src/LRUMap.ts Line 227 Last Updated: 13 June, 2024