Back to problems

Design In-memory Database with Backup

Object-Oriented Programming · Coinbase · Easy

Problem Design a lightweight in-memory database that stores records. Every record is identified by a unique string key and consists of a collection of field-value pairs, where both the field name and the value are strings. Implement the InMemoryDB class with the following methods: void setData(String key, String field, String value) Inserts a field-value pair into the record associated with the given key. If the field already exists in that record, overwrite its current…

Checking your access…