gregoriusxu / booksleeve

Automatically exported from code.google.com/p/booksleeve
Other
0 stars 0 forks source link

SHUTDOWN command in .Server API #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'd like to request the ability to send a Redis SHUTDOWN command from the 
booksleeve client.

This came up while running Redis as an in-memory cache on a Window Azure worker 
role. I get the OnStop() event in C# when the VM is going down for OS updates 
and I'd like to execute an orderly shutdown of the server when that happens.

For now I'll be using the messy workaround you proposed on StackOverflow:
.Scripting.Eval(0, "return redis.call('SHUTDOWN')", null, null). But of course 
a neater API call would be appreciated.

Original issue reported on code.google.com by jtbarrett@gmail.com on 10 Feb 2014 at 11:01

GoogleCodeExporter commented 8 years ago
This is addressed in StackExchange.Redis, the successor to BookSleeve

Original comment by marc.gravell on 20 Mar 2014 at 12:08