Cacheable is an interface that allows for an object to be cached. If using an
on heap cache, just use heapsize. If using an off heap cache, Cacheable
provides methods for serialization of the object.
Some objects cannot be moved off heap, those objects will return a
getSerializedLength() of 0.