CacheBox: 1 huge cache, or several smaller caches

Hi all,

We're working on a huge caching implementation, and I'm trying to
figure out whether we should have one monstrous cache for the
application, or several smaller ones, specific to a subset of objects.
So for example, here's a subset of keys in our one current large
cache:

Inventory-123
Inventory-456
Account-12345
Account-123456
Inventory-5678
Account-9876

So we may have a cache with 10,000 such items in it. Would i be better
off setting up two caches in this case? One for Inventory, and one for
Accounts? Then I would just use the ID as the objectKey, and either
touch the Inventory or Accounts cache as appropriate. Is there a
performance consideration to using one over the other?

Thanks,

Dan

The more keys the more you need to reap. I would suggest granular caches as then you can also implement different policies for each.

Luis Majano
President
Ortus Solutions, Corp
Toll free phone/fax: 1-888-557-8057
Mobile: 909-248-3408

www.coldbox.org

That's what "felt right", but good to have some confirmation :slight_smile:

Dan