APC Cache abstraction layer and implementation