How do I get a list of available NamedCache objects from ScaleOut StateServer (SOSS)?
<p>I'm using v4.0.</p>

<p><strong>Update:</strong></p>

<p>I've hacked together this so far:</p>

<pre><code>public class AllFilter : IFilter
{
    #region IFilter Members

    IndexCollection IFilter.GetIndexCollection()
    {
        return new IndexCollection();
    }

    MatchOptions IFilter.GetMatchOptions()
    {
        return MatchOptions.MatchAll;
    }

    #endregion
}

public class CacheMonitorController : Controller
{
    public ActionResult Index()
    {
        var results =
            from result in ApplicationNamespace.GlobalNamespace.Query(new AllFilter()).OfType&lt;StateServerKey&gt;()
            group result by result.AppId;

        var b = new StringBuilder();

        foreach (var result in results)
        {
            var cache = CacheFactory.GetCache(result.Key);                
            b.AppendLine(cache.Name);
        }

        return this.Content(b.ToString(), "text/plain");
    }
}
</code></pre>

<p>Unfortunately, the name of the cache always comes up <code>null</code>, even though there is certainly a name when the cache is created. The name certainly needs to be identifiable in the UI, so I need a way to get it.</p>
