定制 scrawler/swoole-cache 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

scrawler/swoole-cache

Composer 安装命令:

composer require scrawler/swoole-cache

包简介

High Speed in memory cahce using swoole table

README 文档

README

Swoole Cache

🚀 A High speed , PSR-16 compatible cache library based on swoole-tables 🚀
🇮🇳 Made in India 🇮🇳

💻 Installation

Swoole cache requires open-swoole extension to be installed follow this guide to install open-swoole,

You can install Swoole cache via Composer. If you don't have composer installed , you can download composer from here

composer install scrawler/swoole-cache

🏁 Usage

This is a fully compatible PSR-16 cache and uses all the PSR 16 methods

include __DIR__.'/../vendor/autoload.php';

//Setup (parameter $size is optional)
$cache = new SwooleCache(10);

$key = "name";
$value = "Pranjal";

// set key value pair in in cache
$cache->set($key, $value);

// get value from key
$cache->get($key);

// delete value using key
cache->delete($key);

// Set multiples values
$datas = [
  "user_one" => "Pranjal",
  "user_two" => "Raj"     
 ];
 
$cache->setMultiple($datas);

// Set multiple values
$cache->setMultiple($datas);

// Get multiple values
$cache->getMultiple(["user_one", "user_two"])

// Clear complete cache
$cache->clear();

📄 License

Swoole Cache is created by Pranjal Pandey and released under the Apache 2.0 License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2022-05-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固