# File lib/merb-cache/cache-store/database-activerecord.rb, line 51
    def self.cache_set(key, data, expire = nil, get = true)
      attributes = {:ckey => key, :data => data, :expire => expire }
      if get
        entry = self.find(:first, :conditions => ["ckey=?",key])
        entry.nil? ? self.create(attributes) : entry.update_attributes(attributes)
      else
        self.create(attributes)
      end
      true
    end