Back to problems

Database Design and Implementation

Object-Oriented Programming · Coinbase · Medium

Task Design a reusable in-memory database and implement the requested operations in Python. Write records: Provide a method that associates a key with a string or integer value. Read records: Provide a method that retrieves the current value for a key. Filter records: Provide a method that lists live records whose keys satisfy a supplied criterion. Expire records: Allow each stored record to receive an optional lifetime in milliseconds. Once that lifetime has elapsed, the…

Checking your access…