Identity map trait for ActiveRecord

An extension gives an ability to use identity map pattern for any ActiveRecord model. The idea is, once model is retrieved, to save its data to a map and, if it's retrieved second time (even using different method), reuse it insttead of querying database again.


  1. Is it someting like cache or what?

    #50 Aug 2, 2016 4:16:15 AM
  2. It's like local in memory per-request cache.

    #51 Aug 4, 2016 8:19:33 PM

Signup in order to comment.