lib/pupa/processor/document_store.rb in pupa-0.0.8 vs lib/pupa/processor/document_store.rb in pupa-0.0.9
- old
+ new
@@ -4,15 +4,18 @@
#
# Heavily inspired by `ActiveSupport::Cache::Store`.
class DocumentStore
# Returns a configured JSON document store.
#
+ # See each document store for more information.
+ #
# @param [String] argument the filesystem directory or Redis address
# (e.g. `redis://localhost:6379/0`) in which to dump JSON documents
+ # @param [Hash] options optional arguments
# @return a configured JSON document store
- def self.new(argument)
+ def self.new(argument, **options)
if argument[%r{\Aredis://}]
- RedisStore.new(argument)
+ RedisStore.new(argument, options)
else
FileStore.new(argument)
end
end
end