A general interface to key-value stores