Jenner\SimpleFork\Cache\FileCache::path PHP 메소드

path() 보호된 메소드

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