Caching

Hi,

I was going to cache a DB table into Terracotta Server Array Cache.I can cache by queries key, value pairs into cache.

But was wondering is it possible to cache the entire DB table into Cache as an object and run queries on it ( more like a in memory DB)

Any Ideas.

Cheers!
Vkram