set cache_type