New api for cache