renamed $cache_id by $cacheId
renamed createDir by createCacheDir and reimplement it
unit tests for set() and createCacheDir()