Base cache class