flags in memstore
add new/dirty deferred dict to notify when written to disk