def read_hash(name)
      opts = self.class.persisted_attrs[name]

      if !hashes[name] && opts[:default]
        opts[:default]
      else
        self.send("#{name}=", hashes[name].value) if hashes[name].is_a?(Redis::Future)
        hashes[name]
      end
    end
def read_hash(name)
      opts = self.class.persisted_attrs[name]

      if !hashes[name] && opts[:default]
        opts[:default]
      else
        self.send("#{name}=", hashes[name].value) if hashes[name].is_a?(Redis::Future)
        hashes[name]
      end
    end
Transform and read a hash attribute