Automatically queue memcached writes during DB transactions