paragonie/easydb-cache 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

paragonie/easydb-cache

最新稳定版本:v2.2.0

Composer 安装命令:

composer require paragonie/easydb-cache

包简介

Caching Adapter for EasyDB (caches Prepared Statements to reduce round trips)

README 文档

README

Build Status Latest Stable Version Latest Unstable Version License Downloads

Extends EasyDB, caches Prepared Statements to reduce the number of database round trips. Requires PHP 8.0 or newer.

Installing

composer require paragonie/easydb-cache

Usage

To use EasyDB with prepared statement caching, you can either change the class you're importing in your code, or update your code to use EasyDBCache instead. Alternatively, you can use the named constructor with your existing object.

Afterwards, the EasyDB API is exactly the same as EasyDBCache.

Updating Import Statements

- use ParagonIE\EasyDB\EasyDB;
+ use ParagonIE\EasyDB\EasyDBCache;

Updating Your Code

use ParagonIE\EasyDB\EasyDB;
+ use ParagonIE\EasyDB\EasyDBCache;

- $db = new EasyDB(
+ $db = new EasyDBCache(

Named Constructor

+ use ParagonIE\EasyDB\EasyDBCache;

- $db = new EasyDB(/* ... */);
+ $db = EasyDBCache::fromEasyDB(new EasyDB(/* ... */));

Support Contracts

If your company uses this library in their products or services, you may be interested in purchasing a support contract from Paragon Initiative Enterprises.

统计信息

  • 总下载量: 7.13k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 31
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 31
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固