added base api for caches