title: Flushing portions of a Redis cache
body: <p>I'm investigating the use of Redis in an asp.net mvc application using the <a href="https://github.com/ServiceStack/ServiceStack.Redis" rel="nofollow">ServiceStack.Redis</a> client and a single Redis instance running on a remote machine.</p>
  
  <p>Our cache is broken up into 3 major "areas" (Asp.net output cache, NHibernate second level cache, application cache) and I would like to have the ability able to "flush" all of the keys in these areas individually.</p>
  
  <p>In Couchbase (which we currently utilize) this would be accomplished by using separate <a href="http://docs.couchbase.com/couchbase-manual-2.5/cb-admin/#vbuckets" rel="nofollow">buckets</a> with a client instance pointing to each one. We could then flush all values in these buckets using a single call from the appropriate client instance.</p>
  
  <p>Is there a way to accomplish a setup like this using Redis? If so, how do I approach this from the client/server side?</p>