http://www.php.net/flock
The lock is released also by fclose() (which is also called automatically when script finished).
http://www.php.net/flock
The lock is released also by fclose() (which is also called automatically when script finished).
The fastest Redis alternative ... cachegrand! https://github.com/danielealbano/cachegrand