title: Guava CacheBuilder maximumSize
body: <p>I'm trying to figure out what the number that you specify in Guava CacheBuilder maximumSize() represent.</p>
  
  <p>Say I've got something like this in my code,</p>
  
  <pre><code>Cache&lt;String, Object&gt; programCache = CacheBuilder.newBuilder()
      .maximumSize(1000)
      .build();
  </code></pre>
  
  <p>Does the 1000 that I specified as the max size mean that I can have a thousand different entries in the cache before it starts kicking out the LRU (no matter what size the object might be)? If this is the case, is there a limit to the size of the object?</p>
  
  <p>Or does that 1000 mean, that I have a 1000mb(is MB correct?) to work with and I can have as many of the Objects in the cache as I want up to 1000mb before it starts kicking out the LRU?</p>