定制 paragonie/easydb-cache 二次开发

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

邮箱: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
  • 点击次数: 9
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

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