MDL-45513 cache: implemented defines for unit testing alternative caches