lib/redis/hash_key.rb in redis-objects-0.7.0 vs lib/redis/hash_key.rb in redis-objects-0.8.0
- old
+ new
@@ -116,10 +116,10 @@
end
alias_method :update, :bulk_set
# Set keys in bulk if they do not exist. Takes a hash of field/values {'field1' => 'val1'}. Redis: HSETNX
def fill(pairs={})
- raise ArgumentErorr, "Arugment to fill must be a hash of key/value pairs" unless pairs.is_a?(::Hash)
+ raise ArgumentError, "Arugment to fill must be a hash of key/value pairs" unless pairs.is_a?(::Hash)
pairs.each do |field, value|
redis.hsetnx(key, field, to_redis(value, options[:marshal_keys][field]))
end
end