1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

About Repository Pattern in Laravel

Last updated at Posted at 2017-12-23

problem

アプリケーションでよく使うレコード(ユーザ情報など)をDBから毎回検索して取得するのは処理速度が遅くなる。

solution

リポジトリパターンはレコードをRedisなどにキャッシュすることでDBアクセスを最小限に抑える
デザインパターンである。

no cache in Redis

repo_pattern_nocache.png

cache exixts in Redis

repo_pattern_cache.png
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?