File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ can re-use the existing connection.
609
609
610
610
String: ` Resque.redis = 'localhost:6379' `
611
611
612
- Redis: ` Redus .redis = $redis`
612
+ Redis: ` Resque .redis = $redis`
613
613
614
614
For our rails app we have a ` config/initializers/resque.rb ` file where
615
615
we load ` config/resque.yml ` by hand and set the Redis information
@@ -639,6 +639,25 @@ this way we can tell our Sinatra app about the config file:
639
639
Now everyone is on the same page.
640
640
641
641
642
+ Namespaces
643
+ ----------
644
+
645
+ If you're running multiple, separate instances of Resque you may want
646
+ to namespace the keyspaces so they do not overlap. This is not unlike
647
+ the approach taken by many memcached clients.
648
+
649
+ This feature is provided by the [ redis-namespace] [ rs ] library, which
650
+ Resque uses by default to separate the keys it manages from other keys
651
+ in your Redis server.
652
+
653
+ Simply use the ` Resque.redis.namespace ` accessor:
654
+
655
+ Resque.redis.namespace = "resque:GitHub"
656
+
657
+ We recommend sticking this in your initializer somewhere after Redis
658
+ is configured.
659
+
660
+
642
661
Demo
643
662
----
644
663
734
753
[ 1 ] : http://help.github.com/forking/
735
754
[ 2 ] : http://github.com/defunkt/resque/issues
736
755
[ sv ] : http://semver.org/
756
+ [ rs ] : http://github.com/defunkt/redis-namespace
You can’t perform that action at this time.
0 commit comments