承接 keepeye/cache 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

keepeye/cache

最新稳定版本:1.0

Composer 安装命令:

composer require keepeye/cache

包简介

好用的PHP缓存类库

README 文档

README

This is a simple PHP cache library.

It supports diffrent drivers.

Basic usage

  1. Install through composer

     composer require keepeye/cache
    
  2. just look:

     <?php
     include "vendor/autoload.php";
     //first you should make a instance of cacheManager
     $cacheManager = new Keepeye\Cache\Cache;
     //get a instance of driver through cacheManager with some options
     $cache = $cacheManager->getInstance(array(
         "dir" => __DIR__."/cache"
     ));
     //store an item in the cache for 600 seconds.
     $cache->put("k1","v1",600);
     //retrieve an item by key
     $cache->get("k1");//output "v1"
     //remove an item
     $cache->forget("k1");
     $cache->get("k1");//get null
     //remove all
     $cache->fush();
    

Advanced usage

  1. FileDriver

    This driver is based on the filesystem.It has options below:

     - **dir** where the cache files stored in.
     - **depth** cache dir depth,default 2
    
  2. Other drivers

    Some other drivers will be supported in future,such as redis、mysql、sqlite etc.

Tests

You should have phpunit installed. Then enter the directory, execute:

composer install
phpunit

License

This library is open-sourced software licensed under the MIT license

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固