# php-cache **Repository Path**: gaotiefeng/php-cache ## Basic Information - **Project Name**: php-cache - **Description**: PSR-6 缓存接口规范 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-31 - **Last Updated**: 2021-06-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 缓存 > PSR-16 缓存接口规范 > [PSR-16](https://learnku.com/docs/psr/psr-16-simple-cache/1628) ## 文件驱动FileHandler ```php $file = new FileHandler(); $file->set("file","[file,1]",120); $read = $file->get("file"); var_dump($read); //$file->clear(); ``` ## redis驱动RedisHandler ```php $redis = new RedisHandler(); $redis->set("redis","[0,1,redis]",120); $read = $redis->get("redis"); ```