protected static function set_record_set($params, $records) {
        $cache = cache::make('core', 'grade_categories');
        return $cache->set(self::generate_record_set_key($params), $records);
    }
protected static function set_record_set($params, $records) {
        $cache = cache::make('core', 'grade_categories');
        return $cache->set(self::generate_record_set_key($params), $records);
    }
protected static function set_record_set ( $ params , $ records ) { $ cache = cache :: make ( 'core' , 'grade_categories' ) ; return $ cache -> set ( self :: generate_record_set_key ( $ params ) , $ records ) ; }
Sets a result to the records cache, even if there were no results.

@param string $params The query params
@param grade_object[]|bool $records An array of grade_objects or false if there are no records matching the $key filters
@return void
Sets a result to the records cache even if there were no results .