public static Single < Boolean > remove ( CacheConfigBean cacheConfigBean , String key , String field ) { return SingleRxXian . call ( CacheService . CACHE_SERVICE , "cacheMapRemove" , new JSONObject ( ) { { put ( "cacheConfig" , cacheConfigBean ) ; put ( "key" , key ) ; put ( "field" , field ) ; } } ) . map ( unitResponse -> { unitResponse . throwExceptionIfNotSuccess ( ) ; long result = Objects . requireNonNull ( unitResponse . dataToLong ( ) ) ; return result > 0 ; } ) ; }
remove the elements in the map