angejia/pea
pea
Laravel Eloquent 的缓存层。
特色
- 行级缓存
- 表级缓存
- 自动过期
更多细节参考wiki。
安装
composer require angejia/pea:dev-master
使用
在config/app.php中添加Angejia\Pea\ServiceProvider,然后使用Angejia\Pea\Model替换Illuminate\Database\Eloquent\Model。 最后在模型中设置protected属性$needCache为true即可开启缓存支持。
class UserModel extends \Angejia\Pea\Model
{
protected $needCache = true;
}
如果你有专门的 Redis 缓存实例,可以通过config/database.php指定。具体参见wiki。
安个家出品。
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
655,942,320
9,702
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
442,489,569
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
412,228,818
4,664
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| v0.0.20 | ^5.1 | MIT | |
| v0.0.19 | ^5.1 | MIT | |
| v0.0.18 | ^5.1 | MIT | |
| v0.0.17 | ^5.1 | MIT | |
| v0.0.16 | ^5.1 | MIT | |
| v0.0.15 | ^5.1 | MIT | |
| v0.0.14 | ^5.1 | MIT | |
| v0.0.13 | ^5.1 | MIT | |
| v0.0.12 | ^5.1 | MIT | |
| v0.0.11 | ^5.1 | MIT | |
| v0.0.10 | ^5.1 | MIT | |
| v0.0.9 | ^5.1 | MIT | |
| v0.0.8 | ^5.1 | MIT | |
| v0.0.7 | ^5.1 | MIT | |
| v0.0.6 | ^5.1 | MIT | |
| v0.0.5 | ^5.1 | MIT | |
| v0.0.4 | ^5.1 | MIT | |
| v0.0.3 | ^5.1 | MIT | |
| v0.0.2 | ^5.1 | MIT | |
| v0.0.1 | ^5.1 | MIT |