If you need to store data between requests, unmounting is probably not what you are looking for. Memoization is usually used in Ruby / Rails when calling the same method multiple times within the same query, and this method is expensive (processor intensity, several database queries, etc.).
You can memoize a method that stores the result in an instance variable, and the next call returns the value of the instance variable, rather than re-evaluating the method. There are tons of resources on this if you want to look into it further.
For data that should be stored in different sessions, and possibly need to be exchanged between different users, I highly recommend memcached. Rails has some built-in support for this, so it shouldn't be too hard to dig up some good resources.
source share