示例#1
0
        public void Init()
        {
            // This is the IP address of my computer running Redis.
            server = "ec2-184-73-7-218.compute-1.amazonaws.com";
            //server = "192.168.56.102";

            Resque.setRedis(new Redis(server, 6379));
            Resque.redis().FlushAll();
        }
示例#2
0
        public void Init()
        {
            server = "ec2-184-73-7-218.compute-1.amazonaws.com";
            //string server = "192.168.56.102";

            Resque.setRedis(new Redis(server, 6379));
            Resque.redis().FlushAll();
            worker = new Worker("jobs");
            //Job.create("jobs", "resque.DummyJob", 20, "/tmp");
        }
示例#3
0
        public void Init()
        {
            // This is the IP address of my computer running Redis.
            server = "ec2-184-73-7-218.compute-1.amazonaws.com";
            //server = "192.168.56.102";

            Resque.setRedis(new Redis(server, 6379));
            Resque.redis().FlushAll();

            Exception ex     = new Exception(testString);
            Worker    worker = new Worker();
            String    queue  = testString;

            payload = Encoding.UTF8.GetBytes(testString);

            myRedis = new Failure.Redis(ex, worker, queue, payload);
        }
示例#4
0
        public void Init()
        {
            String server = "ec2-184-73-7-218.compute-1.amazonaws.com";

            //String server = "192.168.56.102";
            new Redis(server, 6379).FlushAll(); // This is the IP address of my computer running Redis.
            Resque.setRedis(new Redis(server, 6379));
            Resque.Push("people", new Dictionary <string, string>()
            {
                { "name", "chris" }
            });
            Resque.Push("people", new Dictionary <string, string>()
            {
                { "name", "bob" }
            });
            Resque.Push("people", new Dictionary <string, string>()
            {
                { "name", "mark" }
            });
        }