added the method set_instances_db_transient for ruby.