Implemented a TypeScript version of LRU (Least Recently Used) cache.
An LRU (Least Recently Used) cache provides a simple key-value storage mechanism suitable for maintaining a cache of limited size, removing the least recently used items when the cache reaches its maximum capacity.
LRU Replacement Policy: Automatically removes the least recently used items when the cache reaches its maximum size. Simple API: Offers get, set methods for easy interaction. Typed in TypeScript: Written in TypeScript, providing type safety and clear interfaces.
To use this LRU cache in your TypeScript project, install it via npm:
If you find any issues with the LRU cache or have suggestions for improvement, feel free to open an issue or create a pull request. Contributions are welcome!
This project is licensed under the MIT License.