Apple Interview Question

Implement a key-value store. Push, pop, query api's were expected to be implemented. How would handle synchronization, cacheing, transactions. etc.