Add memory cache count limit API