angieslist/AL-Redis — pull request #1 by gregmac (2012-02-18 00:24:38+00:00)
Title: Improve configuration

This change extracts configuration into specialized container that makes it easier to use and reduces code repetition.

The reason I did this is it's now possible to configure the session store in code:

```csharp
[assembly: System.Web.PreApplicationStartMethod(typeof(MyApp.MvcApplication), "InitializePreStart")]

public static void InitializePreStart()
{
AngiesList.Redis.RedisSessionStateConfiguration.Configure(cfg => {
cfg.Host = "localhost";
cfg.SessionTimeout = 1440;
cfg.CookieMode = HttpCookieMode.UseCookies;
});
}
```

In my case, I am doing this because I already have a spot where I store all the app config settings (including for non-web applications) that is separate from web.config.

This also cleans up some of the redundant code that loads session config, and the bucket configuration. I think there is still a ton more cleanup that can be done in the bucket stuff (both existing and in what I am committing here) but it's a start.