Equivalent of application context in rails/ruby

hello all,

is there an equivalent of servlet application context in rails where one
could cache “in-memory” some reference objects that are computed - not
directly derived from the database. the object array is available across
sessions …

thanks!

vijay