A class function that is equivalent to attr_accessor, but all values are stored in Rails cache.