Jenner\SimpleFork\Cache\FileCache::path PHP Method

path() protected method

根据key获取缓存文件路径
protected path ( string $key ) : string
$key string
return string
    protected function path($key)
    {
        $parts = array_slice(str_split($hash = md5($key), 2), 0, 2);
        return $this->cache_dir . '/' . implode('/', $parts) . '/' . $hash;
    }