Close this store and release any resources.
Close this store and release any resources. It is undefined what happens on get/multiGet after close
get a single key from the store.
get a single key from the store. Prefer multiGet if you are getting more than one key at a time
Get a set of keys from the store.
Get a set of keys from the store. Important: all keys in the input set are in the resulting map. If the store fails to return a value for a given key, that should be represented by a Future.exception.
Replace a set of keys at one time
Replace a set of keys at one time
replace a value Delete is the same as put((k,None))
replace a value Delete is the same as put((k,None))
Simple storehaus wrapper over finagle-mysql.
Assumes the underlying table's key and value columns are both strings. Supported MySQL column types are: BLOB, TEXT, VARCHAR.
The finagle-mysql client is required to set the user, database and create the underlying table schema prior to this class being used.
Storehaus-mysql also works with pre-populated MySQL tables, based on the assumption that the key column picked is unique. Any table columns other than the picked key and value columns are ignored during reads and writes.
Example usage: