# php-cache **Repository Path**: x_mier/php-cache ## Basic Information - **Project Name**: php-cache - **Description**: php-cache 封装了Redis,Memcache,Yac,Apcu缓存方式,让PHP缓存更便捷。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.yuque.com/ha-renpengpeng/php-cache - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-10-05 - **Last Updated**: 2024-10-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## PHP-Cache ### Introduce Php-cache encapsulates Redis, Memcache, Yac, and Apcu cache modes to make PHP cache more convenient. [READEME.md Chinese](README_CN.md) ### Install `composer require renpengpeng/php-cache` ### Example ```php 'File', 'file' => [ 'cache_dir' => realpath(__DIR__).DIRECTORY_SEPARATOR.'cache' ] ],true); // Set the cache 60 seconds Cache::set('version','1.0.0',60); // Get the cache Cache::get('version','1.0.0'); // Since the increase Cache::increment('version'); // Since the reduction of Cache::reduction('version'); // Delay is permanent Cache::delay('version'); // Delete the cache Cache::delete('version'); // Clear the cache Cache::clear(); ``` ### Manual Yuque:https://www.yuque.com/ha-renpengpeng/php-cache