lib/cpee/persistence.rb in cpee-2.1.27 vs lib/cpee/persistence.rb in cpee-2.1.29

- old
+ new

@@ -61,9 +61,13 @@ end #}}} def self::extract_item(id,opts,item) #{{{ opts[:redis].get("instance:#{id}/#{item}") end #}}} + def self::exists?(id,opts) #{{{ + opts[:redis].exists?("instance:#{id}/state") + end #}}} + def self::set_handler(id,opts,key,url,values,update=false) #{{{ exis = opts[:redis].smembers("instance:#{id}/handlers/#{key}") if update == false && exis.length > 0 return 405