Generic API for Key-Value Stores