lib/docket/storage.rb in docket-0.0.1 vs lib/docket/storage.rb in docket-0.1.1

- old
+ new

@@ -9,38 +9,36 @@ @db = Daybreak::DB.new filename end def save key, value, options={} touch do - append_to_group(options[:group], key) if options[:group] - db.set! key, value db.compact db.flush end end def append key, value touch do new_value = Array(read(key)) << value - save(key, new_value) + save(key, new_value.uniq) end end + def remove key + touch { db.delete! key } + end + def read key touch { db.get key } end def load db.load end def close db.close - end - - def append_to_group group, value - append group, value end private def clear!