// 使用子目录$name = substr($name, 0, 2) . DS . substr($name, 2);}if ($this->options['prefix']) {$name = $this->options['prefix'] . DS . $name;}$filename = $this->options['path'] . $name . '.php';$dir = dirname($filename);if (!is_dir($dir)) {mkdir($dir, 0755, true);}return $filename;}/*** 判断缓存是否存在* @access public* @param string $name 缓存变量名* @return bool
| name | aa/6c4ce6cbcb330f7a953e68e9424a83 |
| filename | /www/wwwroot/cs.hirays.com/caches/cache/aa/6c4ce6cbcb330f7a953e68e9424a83.php |
| dir | /www/wwwroot/cs.hirays.com/caches/cache/aa |