public static Single < Long > addAll ( CacheConfigBean cacheConfigBean , String key , Set members ) { return SingleRxXian . call ( CacheService . CACHE_SERVICE , "cacheSetAdd" , new JSONObject ( ) { { put ( "cacheConfig" , cacheConfigBean ) ; put ( "key" , key ) ; put ( "members" , members ) ; } } ) . map ( unitResponseObject -> { unitResponseObject . throwExceptionIfNotSuccess ( ) ; if ( unitResponseObject . getData ( ) == null ) return 0L ; return unitResponseObject . dataToLong ( ) ; } ) ; }
add all the given elements into the set