In-Memory Key-Value Store with Transactions and Key Count

Implement an in-memory key-value store with nested transaction support. The store must maintain the number of keys currently visible in the active transactional view.

Supported commands:

  • `SET key ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: