Module: Redis
- Defined in:
- lib/redis.rb,
lib/redis/bin.rb,
lib/redis/keys.rb,
lib/redis/sets.rb,
lib/redis/lists.rb,
lib/redis/zsets.rb,
lib/redis/client.rb,
lib/redis/config.rb,
lib/redis/hashes.rb,
lib/redis/logger.rb,
lib/redis/pubsub.rb,
lib/redis/reader.rb,
lib/redis/sender.rb,
lib/redis/server.rb,
lib/redis/strict.rb,
lib/redis/strings.rb,
lib/redis/version.rb,
lib/redis/database.rb,
lib/redis/protocol.rb,
lib/redis/synchrony.rb,
lib/redis/connection.rb
Defined Under Namespace
Modules: Connection, Hashes, Keys, Lists, NotStrict, Protocol, PubSub, Sender, Server, Sets, Strict, Strings, ZSets Classes: Bin, Client, Config, Database, Logger, Reader, Synchrony, ZSet
Constant Summary collapse
- VERSION =
'0.0.2'
Class Method Summary collapse
-
.synchrony(blk = nil, tail = nil, &block) ⇒ Object
Compatible with em-synchrony.
Class Method Details
.synchrony(blk = nil, tail = nil, &block) ⇒ Object
Compatible with em-synchrony
8 9 10 11 12 |
# File 'lib/redis/synchrony.rb', line 8 def self.synchrony blk=nil, tail=nil, &block blk ||= block context = Proc.new { Fiber.new { blk.call }.resume } EventMachine.run(context, tail) end |