/** * Runs the given block in the context of a cache. * If you do not run your block this way, the caching * mechanism will be disabled. * * @param block block */ public static void runBlock(InternableBlock block) { String processId = getProcessId(); cachedBlocks.add(processId); block.run(); cachedBlocks.remove(processId); clearAll(processId); }