| 1 | <?php |
||
| 9 | abstract class BaseDriver |
||
| 10 | { |
||
| 11 | protected $cacheDir; // 缓存路径 |
||
| 12 | |||
| 13 | /** |
||
| 14 | * 初始化时设置缓存路径. |
||
| 15 | * |
||
| 16 | * @param string $dir 路径信息 |
||
| 17 | */ |
||
| 18 | public function __construct($dir) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * 根据缓存名获取缓存内容. |
||
| 25 | * |
||
| 26 | * @param string $name 缓存名 |
||
| 27 | */ |
||
| 28 | abstract public function _get($name); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * 根据缓存名 设置缓存值和超时时间. |
||
| 32 | * |
||
| 33 | * @param string $name 缓存名 |
||
| 34 | * @param string|void $value 缓存值 |
||
| 35 | * @param int $expires 超时时间 |
||
| 36 | * |
||
| 37 | * @return boolean; |
||
|
|
|||
| 38 | */ |
||
| 39 | abstract public function _set($name, $value, $expires); |
||
| 40 | } |
||
| 41 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.