Cache kết quả truy vấn đơn giản với method "remember "
Ví dụ: cache kết quả 10 phút. Hệ thống sẽ sử dụng cache driver mà bạn cấu hình (file cache, database cache, memcache, redis, ...)
Source: http://laravel.com/docs/4.2/queries#caching-queries
Tìm hiểu thêm về Cache: http://laravel.com/docs/4.2/cache
No comments:
Post a Comment