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
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
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04