文件名称:切记:Laravel的查询缓存
文件大小:6KB
文件格式:ZIP
更新时间:2024-02-24 17:15:48
php caching laravel eloquent LaravelPHP
值得记住的是Laravel 5查询缓存 值得记住的是Laravel的口才,它增加了Remember remember()查询方法。 这使得在可调整的时间内缓存查询结果非常容易。 // Get a the first user's posts and remember them for a day. User :: first ()-> remember ( now ()-> addDay ())-> posts ()-> get (); // You can also pass the number of seconds if you like (before Laravel 5.8 th
【文件预览】:
rememberable-master
----composer.json(564B)
----src()
--------Query()
--------Rememberable.php(941B)
----README.md(5KB)
----LICENSE.txt(1KB)