Object-Oriented Programming · ByteDance · Medium
In-Memory KV Store with Snapshot and Restore Medium · Design, Data Structures · Company Tags · Hints Design a class KVStore that maintains an in-memory mapping from string keys to string values. The following methods must be supported: put(key: str, value: str) -> None: Insert the key with the given value, replacing any prior value if the key already exists. get(key: str) -> str None: Return the value associated with key, or None when the key is absent. delete(key: str) ->…
Checking your access…