Whenever you're ready, walk me through how you'd approach this.
Implement a basic LRU cache.
Explain the data structures and invariants needed to support lookup, insertion, update, and least-recently-used eviction efficiently. State the expected time and space complexity, and discuss important edge cases such as capacity one, updating an existing key, and accessing a missing key.