Module: Rediska
- Extended by:
- Rediska
- Included in:
- Rediska
- Defined in:
- lib/rediska/sort_method.rb,
lib/rediska.rb,
lib/rediska/zset.rb,
lib/rediska/bitop.rb,
lib/rediska/driver.rb,
lib/rediska/version.rb,
lib/rediska/connection.rb,
lib/rediska/configuration.rb,
lib/rediska/command_executor.rb,
lib/rediska/databases/memory.rb,
lib/rediska/databases/pstore.rb,
lib/rediska/sorted_set_store.rb,
lib/rediska/databases/expiring.rb,
lib/rediska/transaction_commands.rb,
lib/rediska/sorted_set_argument_handler.rb
Overview
Codes are mostly referenced from MockRedis’ implementation.
Defined Under Namespace
Modules: Bitop, CommandExecutor, Databases, Driver, SortMethod, TransactionCommands, Utilities Classes: Configuration, Connection, SortedSetArgumentHandler, SortedSetIntersectStore, SortedSetStore, SortedSetUnionStore, ZSet
Constant Summary collapse
- VERSION =
'1.1.0'.freeze
- Redis =
::Redis
- TRANSACTION_COMMANDS =
[:discard, :exec, :multi, :watch, :unwatch, :client]
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Instance Method Summary collapse
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
9 10 11 |
# File 'lib/rediska.rb', line 9 def configuration @configuration end |
Instance Method Details
#configure {|configuration| ... } ⇒ Object
11 12 13 14 15 16 |
# File 'lib/rediska.rb', line 11 def configure Redis::Connection.drivers << Rediska::Connection self.configuration ||= Configuration.new yield configuration if block_given? end |