RailsCasts Pro episodes are now free!

Learn more or hide this

Memoization (revised)

#137 Memoization (revised)

Aug 18, 2012 | 9 minutes | Performance, Caching
Memoization is a convenient way to cache a method's response. Here I show several ways to accomplish this from scratch since the ActiveSupport::Memoizable module has been deprecated.
  • Download:
  • source codeProject Files in Zip (55.5 KB)
  • mp4Full Size H.264 Video (13.8 MB)
  • m4vSmaller H.264 Video (8.53 MB)
  • webmFull Size VP8 Video (11.9 MB)
  • ogvFull Size Theora Video (16.5 MB)