title: Maximum length of cache keys in HttpRuntime.Cache object?
body: <p>We are using HttpRuntime.Cache API in an ASP.NET to cache data retrieved from a database.</p>
  
  <p>For this particular application, our database queries feature a LOT of parameters, so our cache keys look something like this:</p>
  
  <blockquote>
    <p>table=table1;param1=somevalue1;param2=somevalue2;param3=somevalue3;param4=somevalue4;param5=somevalue5;param6=somevalue6... etc...</p>
  </blockquote>
  
  <p>For some queries, we have so many parameters that the cache key is several hundred characters long.</p>
  
  <p>My question: is there a limit to the length of these cache keys? Internally, it is using a dictionary, so theoretically the lookup time should be constant. However, I wonder if we have potential to run into some performance/memory problem.</p>