# File lib/merb-cache/cache-store/database-datamapper.rb, line 39 def self.cache_set(key, data, expire = nil, get = true) attributes = {:ckey => key, :data => data, :expire => expire.nil? ? nil : expire.to_s_db } if get entry = self.first(key) entry.nil? ? self.create(attributes) : entry.update_attributes(attributes) else self.create(attributes) end true end