accept string a cache type