Base class and xcache implementation