Multi-layer cache API