Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created May 5, 2010 18:41
Show Gist options
  • Save jhsu/391243 to your computer and use it in GitHub Desktop.
Save jhsu/391243 to your computer and use it in GitHub Desktop.
diff --git lib/redis-store.rb lib/redis-store.rb
index 2ee9337..463fe91 100644
--- lib/redis-store.rb
+++ lib/redis-store.rb
@@ -1,5 +1,5 @@
require "redis"
-require "dist_redis"
+require "redis/distributed"
require "redis/redis_factory"
require "redis/marshaled_redis"
require "redis/distributed_marshaled_redis"
diff --git lib/redis/distributed_marshaled_redis.rb lib/redis/distributed_marshaled_redis.rb
index 5195947..500ea49 100644
--- lib/redis/distributed_marshaled_redis.rb
+++ lib/redis/distributed_marshaled_redis.rb
@@ -1,4 +1,4 @@
-class DistributedMarshaledRedis < DistRedis
+class DistributedMarshaledRedis < Redis::Distributed
def initialize(addresses)
nodes = addresses.map do |address|
MarshaledRedis.new address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment