When acquiring a lock, most application logic requires the latest and greatest data to determine proper course of action. To accommodate this, AutoSlave provides a lock backend for the built-in DB lock backend as well as for memcache. The wrapper ensures that queries are performed against the master database for the duration of the lock.
in settings.php
<?php
$conf['lock_inc'] = 'sites/all/modules/autoslave/lock.inc';
?>
or for memcache:
<?php
$conf['lock_inc'] = 'sites/all/modules/autoslave/memcache-lock.inc';
?>