blainesch/li3_memoize
Composer 安装命令:
composer require blainesch/li3_memoize
包简介
Will aid in the caching of expensive helper/model instance methods.
README 文档
README
Will aid in the caching of expensive helper/model instance methods.
Installation
Composer
{
"require": {
...
"blainesch/li3_memoize": "dev-master"
...
}
}
php composer.phar install
Submodule
git submodule add git://github.com/BlaineSch/li3_memoize.git libraries/li3_memoize
Clone Directly
git clone git://github.com/BlaineSch/li3_memoize.git libraries/li3_memoize
Usage
Load the plugin
Add the plugin to be loaded with Lithium's autoload magic
In app/config/bootstrap/libraries.php add:
<?php Libraries::add('li3_memoize'); ?>
Tell it which instance methods to cache
<?php use li3_memoize\extensions\Memoize; Memoize::add(array( array( 'name' => 'app\extensions\helper\Prose', 'method' => array('init') ), array( 'name' => 'app\models\Users', 'method' => array('name') ), ));
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: The
- 更新时间: 2012-11-08