StashPHP缓存库.zip

时间:2022-07-31 04:52:06
【文件属性】:
文件名称:StashPHP缓存库.zip
文件大小:59KB
文件格式:ZIP
更新时间:2022-07-31 04:52:06
类库下载-StashPHP缓存库 <?php /*  * This file is part of the Stash package.  *  * (c) Robert Hafner   *  * For the full copyright and license information, please view the LICENSE  * file that was distributed with this source code.  */ spl_autoload_register(function ($class) {     $base = '/src/';     if (strpos($class, 'Stash\Test') === 0) {         $base = '/tests/';     }     $file = __DIR__.$base.strtr($class, '\\', '/').'.php';     if (file_exists($file)) {         require $file;         return true;     } });为什么要缓存查询结果?缓存查询结果能极大地改进脚本执行时间和资源需求。缓存SQL查询结果也允许你通过后期处理数据。如果你用文件缓存去存储全部脚本的输出结果(HTML正常的方法是非常占用资源并且相反的影响了脚本的性能。只能通过取得的大量返回数据和数据库服务器的位置这二个要素来相互协调。尽管持续连接可以改进连接数据库时的负载,但非常耗费内存资源,如果获取的是大量的数据,那么存储的全部时间会非常短暂。所以StashPHP缓存库就是专门解决PHP里的这个缓存问题。
【文件预览】:
StashPHP缓存库
----composer.json(821B)
----UPGRADE.md(465B)
----php中文网下载站.url(114B)
----LICENSE(1KB)
----CONTRIBUTING.md(2KB)
----src()
--------Stash()
----php中文网免费下载站.txt(219B)
----autoload.php(520B)
----CHANGELOG.md(6KB)
----README.md(4KB)

网友评论