Fixed a common race condition regarding memcache usage.
Merge pull request #2 from xStrom/master

Fixed a common race condition regarding memcache usage.