Added some fixes from scrutinizer that were introduced by Antoine Corcy....

... Defined a set method inside Cache/Memcached, getters for those properties, a test for those setters and getters in Memcachedtest. Inside the All.php in CLI/Distance, changed coding style by instantiating the result array before it was being used.