Acquire lock/release lock, solving racing conditions in PHP
<p>Is there any class to acquiring/releasing locks, using different "drivers" for that?
Saying "drivers" I mean different backends for locking: locking with <code>files</code>, lockign with <code>memcache</code>, locking with <code>redis</code>, locking with <code>shared memory</code> etc. </p>

<p>Something like...</p>

<pre><code>$Locker = new Locker(new FileLockerDriver());
$Locker-&gt;aquire($id);
//do something here...
$Locker-&gt;release($id);
</code></pre>

<p>Thank you.</p>
